mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
Stop running {{{bug627.bdb}}}. Fixes #643.
git-svn-id: file:///svn/tokudb@3265 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
2b6e3bbc61
commit
3d58de68e4
2 changed files with 14 additions and 2 deletions
|
@ -51,7 +51,10 @@ TDB_CPPFLAGS = -I../../include
|
|||
SRCS = $(sort $(wildcard *.c))
|
||||
|
||||
TDB_TESTS = $(patsubst %.c,%.tdb,$(SRCS))
|
||||
BDB_TESTS = $(patsubst %.c,%.bdb,$(SRCS))
|
||||
BDB_DONTRUN = bug627
|
||||
BDB_TESTS = $(patsubst %.c,%.bdb,$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN)),$(SRCS)))
|
||||
foobdb:
|
||||
echo $(BDB_TESTS)
|
||||
|
||||
ALL_TESTS = $(TDB_TESTS) $(BDB_TESTS)
|
||||
|
||||
|
|
|
@ -36,7 +36,16 @@ void do_627 (void) {
|
|||
r=c2->c_get(c2, dbt_init(&a, "a", 2), dbt_init_malloc(&b), DB_SET); CKERR(r);
|
||||
free(b.data);
|
||||
|
||||
r=c1->c_del(c1, 0); assert(r==DB_LOCK_NOTGRANTED);
|
||||
// This causes all hell to break loose in BDB 4.6, so we just cannot run this under BDB.
|
||||
// PANIC: Invalid argument
|
||||
// Expected DB_LOCK_NOTGRANTED, got DB_RUNRECOVERY: Fatal error, run database recovery
|
||||
// bug627.bdb: bug627.c:44: do_627: Assertion `r==(-30994)' failed.
|
||||
// Aborted
|
||||
r=c1->c_del(c1, 0);
|
||||
if (r!=DB_LOCK_NOTGRANTED) {
|
||||
fprintf(stderr, "Expected DB_LOCK_NOTGRANTED, got %s\n", db_strerror(r));
|
||||
}
|
||||
assert(r==DB_LOCK_NOTGRANTED);
|
||||
|
||||
r=c1->c_close(c1); CKERR(r);
|
||||
r=t1->commit(t1, 0); assert(r==0);
|
||||
|
|
Loading…
Add table
Reference in a new issue