Project

General

Profile

Bug #2575 ยป 0001-Address-a-few-minor-DboTest-issues.patch

Bruce Toll, 01/19/2014 12:54 AM

View differences:

test/dbo/DboTest.C
<< other.checked << std::endl);
}
if (f != other.f) {
DEBUG(std::cerr << "ERROR: f = " << f << " | " << other.f << std::endl);
DEBUG(std::cerr << "ERROR: f = " << std::setprecision(10) << f << " | " << other.f << std::endl);
}
if (d != other.d) {
DEBUG(std::cerr << "ERROR: d = " << d << " | " << other.d << std::endl);
// NOTE: this may fail in dbo_test1 when run under valgrind with postgres on 64-bit Linux
// probably due to valgrind emulation of floating point
DEBUG(std::cerr << "ERROR: d = " << std::setprecision(20) << d << " | " << other.d << std::endl);
}
if (b != other.b) {
DEBUG(std::cerr << "ERROR: b = " << b << " | " << other.b << std::endl);
......
Cs csManyToMany;
Cs csManyToOne;
B() { }
B(): state(State1) { }
B(const std::string& aName, State aState)
: name(aName), state(aState)
......
BOOST_REQUIRE(a2->parent == a2);
#ifdef MYSQL
// NOTE: if you do not reset self-reference in parent, memory is leaked
a2.modify()->parent.reset();
#ifdef MYSQL
a2.flush();
#endif
test/dbo/DboTest3.C
FuncTest::TableName() + "\"").limit(1);
BOOST_REQUIRE(tupe.get<0>() == 6);
// NOTE: can fail w/valgrind due to precision of emulated floating point
BOOST_REQUIRE(tupe.get<1>() == 6.6);
double d = session.query<double>(std::string(
    (1-1/1)