We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2b1220 + 139e64b commit 28791f4Copy full SHA for 28791f4
PhysicsTools/MVAComputer/test/testBitSet.cppunit.cc
@@ -52,7 +52,11 @@ void testBitSet::bitManipulationTest() {
52
// so if neg != bit it is from the undefined
53
// behavior
54
CPPUNIT_ASSERT(bit(31) == 0x80000000);
55
- CPPUNIT_ASSERT(neg(31) == 0x80000000);
+ //Print a warnings instead of failure due to undefined behavior
56
+ //CPPUNIT_ASSERT(neg(31) == 0x80000000);
57
+ if (neg(31) != 0x80000000) {
58
+ std::cout << "Warning: Due to undefined behavior neg(31) != 0x80000000." << std::endl;
59
+ }
60
}
61
62
void testBitSet::multiWordTest() {
0 commit comments