mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-25 20:12:23 +08:00
mdbx-test: add registry for test cases.
Change-Id: Ie9f069dbe6846af170628945db9897ec690fc3da
This commit is contained in:
17
test/dead.cc
17
test/dead.cc
@@ -14,6 +14,14 @@
|
||||
|
||||
#include "test.h"
|
||||
|
||||
class testcase_deadread : public testcase {
|
||||
public:
|
||||
testcase_deadread(const actor_config &config, const mdbx_pid_t pid)
|
||||
: testcase(config, pid) {}
|
||||
bool run() override;
|
||||
};
|
||||
REGISTER_TESTCASE(deadread);
|
||||
|
||||
bool testcase_deadread::run() {
|
||||
db_open();
|
||||
txn_begin(true);
|
||||
@@ -25,6 +33,15 @@ bool testcase_deadread::run() {
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
class testcase_deadwrite : public testcase {
|
||||
public:
|
||||
testcase_deadwrite(const actor_config &config, const mdbx_pid_t pid)
|
||||
: testcase(config, pid) {}
|
||||
bool run() override;
|
||||
};
|
||||
|
||||
REGISTER_TESTCASE(deadwrite);
|
||||
|
||||
bool testcase_deadwrite::run() {
|
||||
db_open();
|
||||
txn_begin(false);
|
||||
|
||||
Reference in New Issue
Block a user