From a57a6611391a330c5e1be4780707be0e45d7fd01 Mon Sep 17 00:00:00 2001 From: Enrico Guiraud <enrico.guiraud@cern.ch> Date: Sat, 8 Feb 2020 17:28:30 +0100 Subject: [PATCH] [TreeProcMT] Fail test early rather than crashing Some builds might not be able to access files at root://eospublic.cern.ch --- tree/treeplayer/test/treeprocmt/treeprocessormt.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/tree/treeplayer/test/treeprocmt/treeprocessormt.cxx b/tree/treeplayer/test/treeprocmt/treeprocessormt.cxx index 6e0e24504a2..8caf993ed43 100644 --- a/tree/treeplayer/test/treeprocmt/treeprocessormt.cxx +++ b/tree/treeplayer/test/treeprocmt/treeprocessormt.cxx @@ -223,6 +223,7 @@ TEST(TreeProcessorMT, PathName) { auto fname = "root://eospublic.cern.ch//eos/root-eos/cms_opendata_2012_nanoaod/ZZTo4mu.root"; auto f = std::unique_ptr<TFile>(TFile::Open(fname)); + ASSERT_TRUE(f != nullptr) << "Could not open remote file\n"; auto tree = f->Get<TTree>("Events"); ROOT::TTreeProcessorMT p(*tree); std::atomic<unsigned int> n(0U); -- GitLab