Skip to content

Commit 6a2d50b

Browse files
committed
[df] Avoid text flooding in test
A test case with a TTree with variable sized arrays was always printing to screen the entire content of the arrays, flooding the test output even in the correct case. Since the arrays are quite long this is not really helpful even in case of failure, we can rely on the output of the gtest macro.
1 parent 5041300 commit 6a2d50b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tree/dataframe/test/dataframe_snapshot.cxx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -478,18 +478,12 @@ void checkSnapshotArrayFile(RResultPtr<RInterface<RLoopManager>> &df, unsigned i
478478
const auto &bv = varSizeBoolArr->at(i);
479479
EXPECT_EQ(thisSize, dv.size());
480480
EXPECT_EQ(thisSize, bv.size());
481-
std::cout << "bv: ";
482-
for (auto j = 0u; j < thisSize; ++j)
483-
std::cout << bv[j] << ' ';
484-
std::cout << "\nexpected: ";
485481
for (auto j = 0u; j < thisSize; ++j) {
486482
EXPECT_DOUBLE_EQ(dv[j], i * j);
487483
const bool value = bv[j];
488484
const bool expected = j % 2 == 0;
489-
std::cout << expected << ' ';
490485
EXPECT_EQ(value, expected);
491486
}
492-
std::cout << '\n';
493487
}
494488
}
495489

0 commit comments

Comments
 (0)