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
107 sem_init (&sem_child, 0, 0);107 sem_init (&sem_child, 0, 0);
108 pthread_create(&id1, NULL, high_load, NULL);108 pthread_create(&id1, NULL, high_load, NULL);
109 pthread_create(&id2, NULL, do_signal, NULL);109 pthread_create(&id2, NULL, do_signal, NULL);
110#if !defined(__arm__) && !defined(__APPLE__)
110 pthread_create(&id3, NULL, do_fork, NULL);111 pthread_create(&id3, NULL, do_fork, NULL);
112#endif
111 113
112 /* sleep does not work !!! */114 /* sleep does not work !!! */
113 end = time(NULL) + 2;115 end = time(NULL) + 2;
@@ -118,7 +120,9 @@ main (void) · 4 unmodified lines
118 120
119 pthread_join(id1, NULL);121 pthread_join(id1, NULL);
120 pthread_join(id2, NULL);122 pthread_join(id2, NULL);
123#if !defined(__arm__) && !defined(__APPLE__)
121 pthread_join(id3, NULL);124 pthread_join(id3, NULL);
125#endif
122 sem_destroy (&sem);126 sem_destroy (&sem);
123 sem_destroy (&sem_child);127 sem_destroy (&sem_child);
124 128

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