Commit b2449e6b authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4875], fix tests due to change in calculating stats->fsize

git-svn-id: file:///svn/toku/tokudb@43508 c7de825b-a66e-492c-adef-691d508d4ae1
parent f666ee03
...@@ -79,7 +79,9 @@ test_stat64 (unsigned int N) { ...@@ -79,7 +79,9 @@ test_stat64 (unsigned int N) {
assert(0 < s.bt_nkeys && s.bt_nkeys <= N); assert(0 < s.bt_nkeys && s.bt_nkeys <= N);
assert(s.bt_ndata == s.bt_nkeys); assert(s.bt_ndata == s.bt_nkeys);
assert(0 < s.bt_dsize && s.bt_dsize <= dsize); assert(0 < s.bt_dsize && s.bt_dsize <= dsize);
assert(s.bt_fsize > N); // cannot reliably test bt_fsize, because it
// just measures size of file on disk
// assert(s.bt_fsize > N);
} }
/* r=txn->commit(txn, 0); CKERR(r); */ /* r=txn->commit(txn, 0); CKERR(r); */
...@@ -112,7 +114,9 @@ test_stat64 (unsigned int N) { ...@@ -112,7 +114,9 @@ test_stat64 (unsigned int N) {
assert(0 < s.bt_nkeys && s.bt_nkeys <= N); assert(0 < s.bt_nkeys && s.bt_nkeys <= N);
assert(s.bt_ndata == s.bt_nkeys); assert(s.bt_ndata == s.bt_nkeys);
assert(0 < s.bt_dsize && s.bt_dsize <= dsize); assert(0 < s.bt_dsize && s.bt_dsize <= dsize);
assert(s.bt_fsize > N); // cannot reliably test bt_fsize, because it
// just measures size of file on disk
//assert(s.bt_fsize > N);
} }
/* r=txn->commit(txn, 0); CKERR(r); */ /* r=txn->commit(txn, 0); CKERR(r); */
......
...@@ -73,7 +73,9 @@ test_stat64 (unsigned int N) { ...@@ -73,7 +73,9 @@ test_stat64 (unsigned int N) {
assert(0 < s.bt_nkeys && s.bt_nkeys <= N); assert(0 < s.bt_nkeys && s.bt_nkeys <= N);
assert(s.bt_ndata == s.bt_nkeys); assert(s.bt_ndata == s.bt_nkeys);
assert(0 < s.bt_dsize && s.bt_dsize <= dsize); assert(0 < s.bt_dsize && s.bt_dsize <= dsize);
assert(s.bt_fsize > N); // cannot reliably test bt_fsize, because it
// measures the size of the file on disk.
//assert(s.bt_fsize > N);
} }
r=txn->commit(txn, 0); CKERR(r); r=txn->commit(txn, 0); CKERR(r);
...@@ -107,7 +109,9 @@ test_stat64 (unsigned int N) { ...@@ -107,7 +109,9 @@ test_stat64 (unsigned int N) {
assert(0 < s.bt_nkeys && s.bt_nkeys <= N); assert(0 < s.bt_nkeys && s.bt_nkeys <= N);
assert(s.bt_ndata == s.bt_nkeys); assert(s.bt_ndata == s.bt_nkeys);
assert(0 < s.bt_dsize && s.bt_dsize <= dsize); assert(0 < s.bt_dsize && s.bt_dsize <= dsize);
assert(s.bt_fsize > N); // cannot reliably test bt_fsize, because it
// measures the size of the file on disk.
//assert(s.bt_fsize > N);
} }
r=txn->commit(txn, 0); CKERR(r); r=txn->commit(txn, 0); CKERR(r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment