diff options
author | lars/lthalmann@dl145j.mysql.com <> | 2007-01-12 12:31:44 +0100 |
---|---|---|
committer | lars/lthalmann@dl145j.mysql.com <> | 2007-01-12 12:31:44 +0100 |
commit | 1e356251a0838095863e0ed069ec4135752f5123 (patch) | |
tree | 8f05ed2f7b6984f4ca7df8e1eafad42a9d4235e2 /unittest | |
parent | ebb4885357428d10aaa1628f860e1457de80d91b (diff) | |
parent | baf42721521eaa1258f5c26311ac6ccf860369fd (diff) | |
download | mariadb-git-1e356251a0838095863e0ed069ec4135752f5123.tar.gz |
Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.1-new-rpl
into mysql.com:/nfsdisk1/lars/MERGE/mysql-5.1-merge
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/mysys/my_atomic-t.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/unittest/mysys/my_atomic-t.c b/unittest/mysys/my_atomic-t.c index aa730552582..f636ffed97f 100644 --- a/unittest/mysys/my_atomic-t.c +++ b/unittest/mysys/my_atomic-t.c @@ -173,9 +173,15 @@ int main() pthread_cond_init(&cond, 0); my_atomic_rwlock_init(&rwl); - test_atomic("my_atomic_add32", test_atomic_add_handler, 100,10000); - test_atomic("my_atomic_swap32", test_atomic_swap_handler, 100,10000); - test_atomic("my_atomic_cas32", test_atomic_cas_handler, 100,10000); +#ifdef HPUX11 +#define CYCLES 1000 +#else +#define CYCLES 10000 +#endif +#define THREADS 100 + test_atomic("my_atomic_add32", test_atomic_add_handler, THREADS, CYCLES); + test_atomic("my_atomic_swap32", test_atomic_swap_handler, THREADS, CYCLES); + test_atomic("my_atomic_cas32", test_atomic_cas_handler, THREADS, CYCLES); /* workaround until we know why it crashes randomly on some machine |