Browse Source

fix the regressions error on 4.4. addresses #968

git-svn-id: file:///svn/tokudb@5307 c7de825b-a66e-492c-adef-691d508d4ae1
pull/56/head
Rich Prohaska 18 years ago
parent
commit
d245cafe3b
  1. 2
      src/tests/test_truncate_with_cursors.c

2
src/tests/test_truncate_with_cursors.c

@ -74,7 +74,7 @@ int test_truncate_with_cursors(int n) {
// It looks like for 4.6 there's no error code, even though the documentation says "it is an error to truncate with open cursors".
// For 4.3 the error code is EINVAL
// I don't know where the boundary really is: Is it an error in 4.5 or 4.4?
if (DB_VERSION_MAJOR==4 && DB_VERSION_MINOR>=6) {
if (DB_VERSION_MAJOR==4 && DB_VERSION_MINOR>=4) {
assert(r == 0 && test_errors);
} else {
assert(r == EINVAL && test_errors);

Loading…
Cancel
Save