Skip to content

Commit 2a3c9a9

Browse files
committed
[df] Adjust test to debug warning
1 parent 38375f8 commit 2a3c9a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

root/dataframe/test_readTotemNtuple.C

+5
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ int test_readTotemNtuple() {
2222
*count2;
2323

2424
// Jitted filter with multi-dotted branch name
25+
// In debug mode RDataFrame warns when it needs to copy collection elements for reading
26+
// Ignore the warnings which are not important for this test
27+
auto previousEIL = gErrorIgnoreLevel;
28+
gErrorIgnoreLevel = kError;
2529
std::cout << "Jitted filter, multi-dotted name:" << std::endl;
2630
auto count3 = d.Filter("cout << par_patterns_rp_0.u.w << endl; return true;").Count();
2731
*count3;
32+
gErrorIgnoreLevel = previousEIL;
2833

2934
return 0;
3035
}

0 commit comments

Comments
 (0)