Skip to content

Commit

Permalink
Bug#22320: my_atomic-t unit test fails
Browse files Browse the repository at this point in the history
Move sleep to the affected test, no point in slowing down every
test that uses the thread template.
  • Loading branch information
Davi Arnaut committed Feb 23, 2012
1 parent c95d2b0 commit b0e7dcc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions unittest/mysys/my_atomic-t.c
Expand Up @@ -180,4 +180,10 @@ void do_tests()
test_concurrently("my_atomic_add64", test_atomic_add64, THREADS, CYCLES);

my_atomic_rwlock_destroy(&rwl);

/*
workaround until we know why it crashes randomly on some machine
(BUG#22320).
*/
sleep(2);
}
5 changes: 0 additions & 5 deletions unittest/mysys/thr_template.c
Expand Up @@ -79,11 +79,6 @@ int main(int argc __attribute__((unused)), char **argv)

do_tests();

/*
workaround until we know why it crashes randomly on some machine
(BUG#22320).
*/
sleep(2);
pthread_mutex_destroy(&mutex);
pthread_cond_destroy(&cond);
pthread_attr_destroy(&thr_attr);
Expand Down

0 comments on commit b0e7dcc

Please sign in to comment.