From 98ce757472e48aac59d627714732058cfd8c56a9 Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Wed, 27 Nov 2024 20:20:09 +0400 Subject: [PATCH] refactor wal sync tests --- libsql-sqlite3/src/test_walapi.c | 175 +++++++++++++------------------ 1 file changed, 70 insertions(+), 105 deletions(-) diff --git a/libsql-sqlite3/src/test_walapi.c b/libsql-sqlite3/src/test_walapi.c index 21a0bc5d4d..90d16cc9ff 100644 --- a/libsql-sqlite3/src/test_walapi.c +++ b/libsql-sqlite3/src/test_walapi.c @@ -1,8 +1,13 @@ #include #include +#include +#include #include #include +#define eprintf(...) fprintf(stderr, __VA_ARGS__) +#define ensure(condition, ...) { if (!(condition)) { eprintf(__VA_ARGS__); exit(1); } } + #if 0 static void dump_frame(unsigned char *frame, size_t size){ for(int addr=0; addr