summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorlars@black.(none) <>2006-12-08 23:41:29 +0100
committerlars@black.(none) <>2006-12-08 23:41:29 +0100
commitd85ca0dc1dc32096a873259a37a38e4b30070fbe (patch)
treea08468cc6f92f0ceab4eed8473537c51b45be1ff /unittest
parentc24381bdaaca307148888f2cf7c223570266c4f0 (diff)
parent6e5bd8a7f8dc7adbe803f027d09c019c045393a0 (diff)
downloadmariadb-git-d85ca0dc1dc32096a873259a37a38e4b30070fbe.tar.gz
Merge mysql.com:/home/bkroot/mysql-5.1-new-rpl
into mysql.com:/home/bk/MERGE/mysql-5.1-merge
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mysys/my_atomic-t.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/unittest/mysys/my_atomic-t.c b/unittest/mysys/my_atomic-t.c
index fe93b0942ce..25f00f3ff87 100644
--- a/unittest/mysys/my_atomic-t.c
+++ b/unittest/mysys/my_atomic-t.c
@@ -174,9 +174,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