diff options
author | Michael Widenius <monty@askmonty.org> | 2011-05-05 14:51:01 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-05-05 14:51:01 +0300 |
commit | d5caa00161453eb0cd61e3641d4e6783fb385319 (patch) | |
tree | 34c7e24c19fda340a460e8d5316ca054617c687d /storage | |
parent | a67a5dd6f956bf6f62799eafa2c67d008ee15e24 (diff) | |
download | mariadb-git-d5caa00161453eb0cd61e3641d4e6783fb385319.tar.gz |
Improved 'make test-unit' time slightly
storage/maria/unittest/ma_test_loghandler-t.c:
Don't sync during test
storage/maria/unittest/ma_test_loghandler_multigroup-t.c:
Don't sync during test
storage/maria/unittest/ma_test_loghandler_multithread-t.c:
Don't sync during test
unittest/mysys/bitmap-t.c:
Don't test all bit combinations (not needed)
unittest/mysys/thr_template.c:
Remove sleep as old bug should be fixed nowadays
unittest/mysys/waiting_threads-t.c:
Only run test with --big
unittest/mytap/tap.c:
Print total time at end of test.
unittest/unit.pl:
Use TAP::Harness instead of Test::Harness (recommended according to manual)
Add times to tests.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/maria/unittest/ma_test_loghandler-t.c | 2 | ||||
-rw-r--r-- | storage/maria/unittest/ma_test_loghandler_multigroup-t.c | 2 | ||||
-rw-r--r-- | storage/maria/unittest/ma_test_loghandler_multithread-t.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/storage/maria/unittest/ma_test_loghandler-t.c b/storage/maria/unittest/ma_test_loghandler-t.c index ffac9b04839..53459a5239d 100644 --- a/storage/maria/unittest/ma_test_loghandler-t.c +++ b/storage/maria/unittest/ma_test_loghandler-t.c @@ -173,6 +173,8 @@ int main(int argc __attribute__((unused)), char *argv[]) maria_data_root= (char *)"."; if (maria_log_remove()) exit(1); + /* We don't need to do physical syncs in this test */ + my_disable_sync= 1; for (i= 0; i < (LONG_BUFFER_SIZE + LSN_STORE_SIZE * 2 + 2); i+= 2) { diff --git a/storage/maria/unittest/ma_test_loghandler_multigroup-t.c b/storage/maria/unittest/ma_test_loghandler_multigroup-t.c index 7ba7ce3176d..aab94ff10c7 100644 --- a/storage/maria/unittest/ma_test_loghandler_multigroup-t.c +++ b/storage/maria/unittest/ma_test_loghandler_multigroup-t.c @@ -247,6 +247,8 @@ int main(int argc __attribute__((unused)), char *argv[]) load_defaults("my", load_default_groups, &argc, &argv); default_argv= argv; get_options(&argc, &argv); + /* We don't need to do physical syncs in this test */ + my_disable_sync= 1; if (maria_log_remove()) exit(1); diff --git a/storage/maria/unittest/ma_test_loghandler_multithread-t.c b/storage/maria/unittest/ma_test_loghandler_multithread-t.c index dbf47ad2ee1..e46fe047a97 100644 --- a/storage/maria/unittest/ma_test_loghandler_multithread-t.c +++ b/storage/maria/unittest/ma_test_loghandler_multithread-t.c @@ -271,6 +271,8 @@ int main(int argc __attribute__((unused)), plan(WRITERS + FLUSHERS + ITERATIONS * WRITERS * 3 + FLUSH_ITERATIONS * FLUSHERS ); + /* We don't need to do physical syncs in this test */ + my_disable_sync= 1; bzero(&pagecache, sizeof(pagecache)); maria_data_root= (char *)"."; |