1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add file test/tt3_checkpoint.c that adds a multi-threaded test for blocking checkpoints to threadtest3.

FossilOrigin-Name: 648dd157ef3b7b790764698fd4dd7107c25212c9
This commit is contained in:
dan
2010-11-19 09:58:11 +00:00
parent 08756372d0
commit 24cd616ed8
6 changed files with 170 additions and 12 deletions

View File

@ -1394,6 +1394,7 @@ static void dynamic_triggers(int nMs){
print_and_free_err(&err);
}
#include "tt3_checkpoint.c"
int main(int argc, char **argv){
struct ThreadTest {
@ -1408,8 +1409,11 @@ int main(int argc, char **argv){
{ walthread5, "walthread5", 1000 },
{ walthread5, "walthread5", 1000 },
{ cgt_pager_1, "cgt_pager_1", 0 },
{ cgt_pager_1, "cgt_pager_1", 0 },
{ dynamic_triggers, "dynamic_triggers", 20000 },
{ checkpoint_starvation_1, "checkpoint_starvation_1", 10000 },
{ checkpoint_starvation_2, "checkpoint_starvation_2", 10000 },
};
int i;