mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-18 17:52:22 +08:00
mdbx-tests: cleanup/simplity code (minor).
Change-Id: I9813ed3a29b331c1f995ce76766709f454bb49c2
This commit is contained in:
committed by
Leo Yuriev
parent
12174187e8
commit
40e3f735ab
19
test/try.cc
19
test/try.cc
@@ -1,13 +1,4 @@
|
||||
#include "test.h"
|
||||
|
||||
bool testcase_try::setup() {
|
||||
log_trace(">> setup");
|
||||
if (!inherited::setup())
|
||||
return false;
|
||||
|
||||
log_trace("<< setup");
|
||||
return true;
|
||||
}
|
||||
#include "test.h"
|
||||
|
||||
bool testcase_try::run() {
|
||||
db_open();
|
||||
@@ -27,11 +18,3 @@ bool testcase_try::run() {
|
||||
txn_guard.reset(txn);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool testcase_try::teardown() {
|
||||
log_trace(">> teardown");
|
||||
cursor_guard.release();
|
||||
txn_guard.release();
|
||||
db_guard.release();
|
||||
return inherited::teardown();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user