diff --git a/tree/treeplayer/test/treeprocmt/treeprocessormt.cxx b/tree/treeplayer/test/treeprocmt/treeprocessormt.cxx
index 6e0e24504a20d04934d0c03cdbff4dab26aa9dd8..8caf993ed43f4366d0f24ff6ccca0a4aa82044c4 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);