From ae1796fc349c81e06a43eedfae5e332b73c81cc4 Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Fri, 2 Oct 2020 17:50:31 +0200 Subject: [PATCH] Fix testcase 114 for arm and apple Arm has a problem with tls after a fork. The pthread_key_create seems to be forgotten? Apple has a problem with the exit(0) code in do_fork(). An IO mutex is still held after a fork(). --- tests/tests2/114_bound_signal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/tests2/114_bound_signal.c b/tests/tests2/114_bound_signal.c index 87f44ca8..6ccb0ffe 100644 --- a/tests/tests2/114_bound_signal.c +++ b/tests/tests2/114_bound_signal.c @@ -107,7 +107,9 @@ main (void) sem_init (&sem_child, 0, 0); pthread_create(&id1, NULL, high_load, NULL); pthread_create(&id2, NULL, do_signal, NULL); +#if !defined(__arm__) && !defined(__APPLE__) pthread_create(&id3, NULL, do_fork, NULL); +#endif /* sleep does not work !!! */ end = time(NULL) + 2; @@ -118,7 +120,9 @@ main (void) pthread_join(id1, NULL); pthread_join(id2, NULL); +#if !defined(__arm__) && !defined(__APPLE__) pthread_join(id3, NULL); +#endif sem_destroy (&sem); sem_destroy (&sem_child);