OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 ** The code in this file runs a few multi-threaded test cases using the | 3 ** The code in this file runs a few multi-threaded test cases using the |
4 ** SQLite library. It can be compiled to an executable on unix using the | 4 ** SQLite library. It can be compiled to an executable on unix using the |
5 ** following command: | 5 ** following command: |
6 ** | 6 ** |
7 ** gcc -O2 threadtest3.c sqlite3.c -ldl -lpthread -lm | 7 ** gcc -O2 threadtest3.c sqlite3.c -ldl -lpthread -lm |
8 ** | 8 ** |
9 ** Then run the compiled program. The exit status is non-zero if any tests | 9 ** Then run the compiled program. The exit status is non-zero if any tests |
10 ** failed (hopefully there is also some output to stdout to clarify what went | 10 ** failed (hopefully there is also some output to stdout to clarify what went |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 printf("Usage: %s [testname|testprefix*]\n", argv[0]); | 1452 printf("Usage: %s [testname|testprefix*]\n", argv[0]); |
1453 printf("Available tests are:\n"); | 1453 printf("Available tests are:\n"); |
1454 for(i=0; i<sizeof(aTest)/sizeof(aTest[0]); i++){ | 1454 for(i=0; i<sizeof(aTest)/sizeof(aTest[0]); i++){ |
1455 printf(" %s\n", aTest[i].zTest); | 1455 printf(" %s\n", aTest[i].zTest); |
1456 } | 1456 } |
1457 | 1457 |
1458 return 254; | 1458 return 254; |
1459 } | 1459 } |
1460 | 1460 |
1461 | 1461 |
OLD | NEW |