mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-24 19:52:22 +08:00
mdbx-test: add registry for test cases.
Change-Id: Ie9f069dbe6846af170628945db9897ec690fc3da
This commit is contained in:
@@ -14,6 +14,17 @@
|
||||
|
||||
#include "test.h"
|
||||
|
||||
class testcase_jitter : public testcase {
|
||||
protected:
|
||||
void check_dbi_error(int expect, const char *stage);
|
||||
|
||||
public:
|
||||
testcase_jitter(const actor_config &config, const mdbx_pid_t pid)
|
||||
: testcase(config, pid) {}
|
||||
bool run() override;
|
||||
};
|
||||
REGISTER_TESTCASE(jitter);
|
||||
|
||||
void testcase_jitter::check_dbi_error(int expect, const char *stage) {
|
||||
MDBX_stat stat;
|
||||
int err = mdbx_dbi_stat(txn_guard.get(), dbi, &stat, sizeof(stat));
|
||||
|
||||
Reference in New Issue
Block a user