History

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().

herman ten brugge committed 6 years ago

Commit ae1796f1 parent 78da4581 file · +4 −0Browse files

Unified · Split

tests/tests2/114_bound_signal.c+4−0
@@ -107,7 +107,9 @@ main (void) · 106 unmodified lines
107107 sem_init (&sem_child, 0, 0);
108108 pthread_create(&id1, NULL, high_load, NULL);
109109 pthread_create(&id2, NULL, do_signal, NULL);
110+#if !defined(__arm__) && !defined(__APPLE__)
110111 pthread_create(&id3, NULL, do_fork, NULL);
112+#endif
111113
112114 /* sleep does not work !!! */
113115 end = time(NULL) + 2;
@@ -118,7 +120,9 @@ main (void) · 4 unmodified lines
118120
119121 pthread_join(id1, NULL);
120122 pthread_join(id2, NULL);
123+#if !defined(__arm__) && !defined(__APPLE__)
121124 pthread_join(id3, NULL);
125+#endif
122126 sem_destroy (&sem);
123127 sem_destroy (&sem_child);
124128

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t