Skip to content
Snippets Groups Projects
Commit a550c225 authored by Gerardo Ganis's avatar Gerardo Ganis
Browse files

Notify when gEnv look-up fails

parent 512fedc4
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,12 @@ void ProofTests::SlaveBegin(TTree * /*tree*/)
// at this point in the gEnv table
TNamed *nm = dynamic_cast<TNamed*>(fInput->FindObject("testenv"));
if (nm) {
if (gEnv->Lookup(nm->GetTitle())) fStat->Fill(2.);
if (gEnv->Lookup(nm->GetTitle())) {
fStat->Fill(2.);
} else {
Warning("SlaveBegin", "%d: lookup for '%s' failed!", fTestType, nm->GetTitle());
gEnv->Print();
}
} else {
Warning("SlaveBegin", "%d: TNamed with the test env info not found!", fTestType);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment