mdbx-tests: cleanup/simplity code (minor).

Change-Id: I9813ed3a29b331c1f995ce76766709f454bb49c2
This commit is contained in:
Leonid Yuriev
2018-11-04 18:57:27 +03:00
committed by Leo Yuriev
parent 12174187e8
commit 40e3f735ab
5 changed files with 11 additions and 106 deletions

View File

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