Commit e41f317e authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

close[t:4367] Make the test tolerate the case where the number of calls to...

close[t:4367] Make the test tolerate the case where the number of calls to pwrite is small and the test wasn't aborting.  Now it aborts if the number of calls is smaller than the -C argument.  Fix #4376.

git-svn-id: file:///svn/toku/tokudb@38591 c7de825b-a66e-492c-adef-691d508d4ae1
parent aec5a49d
......@@ -211,5 +211,9 @@ int
test_main (int argc, char * const argv[]) {
diskfull_parse_args(argc, argv);
do_writes_that_fail();
if (fail_at != FAIL_NEVER && write_count <= fail_at) {
// The makefile expects the code to fail if the -C argument is passed. If we didn't make enough calls to pwrite() then fail anyway.
assert(0);
}
return 0;
}
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