Skip to content
Snippets Groups Projects
Commit b342753f authored by Philippe Canal's avatar Philippe Canal
Browse files

In stressEntryList hide expected warning

parent 89300e04
No related branches found
No related tags found
No related merge requests found
......@@ -531,7 +531,10 @@ Bool_t Test5And6(const std::list<const char*>& treeNamesForChain )
elempty->Remove(3);
//elempty->Print("all");
chain->SetEntryList(elempty);
auto oldlevel = gErrorIgnoreLevel;
gErrorIgnoreLevel = kError; // Draw will print a warning about the empty histogram.
Long64_t nen = chain->Draw("x", "", "goff");
gErrorIgnoreLevel = oldlevel;
if (nen!=0) wrongentries5++;
//printf("wrongentries5=%d\n", wrongentries5);
......
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