Added additional testing to test_db_already_exists>

git-svn-id: file:///svn/tokudb@693 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2007-11-20 22:05:13 +00:00
parent 57570eda1f
commit e6cf81f3a9

View file

@ -28,6 +28,9 @@ int main() {
r = db_create(&db, null_env, 0); CKERR(r);
r = db->open(db, null_txn, fname, "main", DB_BTREE, DB_CREATE, 0666); CKERR(r);
r = db->close(db, 0); CKERR(r);
r = db_create(&db, null_env, 0); CKERR(r);
r = db->open(db, null_txn, fname, "main", DB_BTREE, 0, 0666); CKERR(r);
r = db->close(db, 0); CKERR(r);
r = db_create(&db, null_env, 0); CKERR(r);
r = db->open(db, null_txn, fname, "main", DB_BTREE, DB_EXCL, 0666);