Author: kpvdr
Date: 2008-10-20 16:42:22 -0400 (Mon, 20 Oct 2008)
New Revision: 2665
Modified:
store/trunk/cpp/tests/jrnl/_st_basic_txn.cpp
Log:
Fix for boost unsigned compare error in RHEL4/5 (Doh)
Modified: store/trunk/cpp/tests/jrnl/_st_basic_txn.cpp
===================================================================
--- store/trunk/cpp/tests/jrnl/_st_basic_txn.cpp 2008-10-20 20:10:05 UTC (rev 2664)
+++ store/trunk/cpp/tests/jrnl/_st_basic_txn.cpp 2008-10-20 20:42:22 UTC (rev 2665)
@@ -153,12 +153,12 @@
create_xid(xid, 0, XID_SIZE);
for (int m=0; m<NUM_MSGS; m++)
BOOST_CHECK_EQUAL(enq_txn_msg(jc, m, create_msg(msg, m, MSG_SIZE), xid,
false), u_int64_t(m));
- BOOST_CHECK_EQUAL(jc.get_enq_cnt(), 0);
+ BOOST_CHECK_EQUAL(jc.get_enq_cnt(), u_int32_t(0));
for (int m=0; m<NUM_MSGS; m++)
deq_txn_msg(jc, m, m+NUM_MSGS, xid);
- BOOST_CHECK_EQUAL(jc.get_enq_cnt(), 0);
+ BOOST_CHECK_EQUAL(jc.get_enq_cnt(), u_int32_t(0));
txn_commit(jc, 2*NUM_MSGS, xid);
- BOOST_CHECK_EQUAL(jc.get_enq_cnt(), 0);
+ BOOST_CHECK_EQUAL(jc.get_enq_cnt(), u_int32_t(0));
}
catch(const exception& e) { BOOST_FAIL(e.what()); }
cout << "ok" << endl;
@@ -177,12 +177,12 @@
create_xid(xid, 0, XID_SIZE);
for (int m=0; m<NUM_MSGS; m++)
BOOST_CHECK_EQUAL(enq_txn_msg(jc, m, create_msg(msg, m, MSG_SIZE), xid,
false), u_int64_t(m));
- BOOST_CHECK_EQUAL(jc.get_enq_cnt(), 0);
+ BOOST_CHECK_EQUAL(jc.get_enq_cnt(), u_int32_t(0));
for (int m=0; m<NUM_MSGS; m++)
deq_txn_msg(jc, m, m+NUM_MSGS, xid);
- BOOST_CHECK_EQUAL(jc.get_enq_cnt(), 0);
+ BOOST_CHECK_EQUAL(jc.get_enq_cnt(), u_int32_t(0));
txn_abort(jc, 2*NUM_MSGS, xid);
- BOOST_CHECK_EQUAL(jc.get_enq_cnt(), 0);
+ BOOST_CHECK_EQUAL(jc.get_enq_cnt(), u_int32_t(0));
}
catch(const exception& e) { BOOST_FAIL(e.what()); }
cout << "ok" << endl;
@@ -204,7 +204,7 @@
BOOST_CHECK_EQUAL(enq_txn_msg(jc, 3*m, create_msg(msg, m, MSG_SIZE), xid,
false), u_int64_t(3*m));
deq_txn_msg(jc, 3*m, 3*m+1, xid);
txn_commit(jc, 3*m+2, xid);
- BOOST_CHECK_EQUAL(jc.get_enq_cnt(), 0);
+ BOOST_CHECK_EQUAL(jc.get_enq_cnt(), u_int32_t(0));
}
}
catch(const exception& e) { BOOST_FAIL(e.what()); }
@@ -227,7 +227,7 @@
BOOST_CHECK_EQUAL(enq_txn_msg(jc, 3*m, create_msg(msg, m, MSG_SIZE), xid,
false), u_int64_t(3*m));
deq_txn_msg(jc, 3*m, 3*m+1, xid);
txn_abort(jc, 3*m+2, xid);
- BOOST_CHECK_EQUAL(jc.get_enq_cnt(), 0);
+ BOOST_CHECK_EQUAL(jc.get_enq_cnt(), u_int32_t(0));
}
}
catch(const exception& e) { BOOST_FAIL(e.what()); }