mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 23:35:32 +02:00
Work around slow my_atomic-t test on hpux11: decrease number of
iterations on this platform unittest/mysys/my_atomic-t.c: decrease number of iterations on hpux11 (to hopefully go from one hour to a few minutes).
This commit is contained in:
parent
2138534c13
commit
733fb20dcd
1 changed files with 9 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue