fix the regressions error on 4.4. addresses #968

git-svn-id: file:///svn/tokudb@5307 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2008-07-24 12:16:57 +00:00
parent 31aa0af04e
commit 9a801f6fc6

View file

@ -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);