Skip to content

Commit 3d93a3a

Browse files
authored
Fix and cleanup IPC test (#92)
* Remove unnecessary check (copy-paste mistake). * Ensure thread attributes are actually used by `pthread_create()`;
1 parent dece0b4 commit 3d93a3a

File tree

1 file changed

+1
-6
lines changed
  • userspace/testapp/tests

1 file changed

+1
-6
lines changed

userspace/testapp/tests/ipc.c

+1-6
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,8 @@ void run_ipc_test(void) {
204204
return;
205205
}
206206

207-
if(status != 0) {
208-
jinue_error("error: pthread_attr_init() failed: %s", strerror(status));
209-
return;
210-
}
211-
212207
pthread_t client_thread;
213-
status = pthread_create(&client_thread, NULL, ipc_test_client_thread, (void *)(uintptr_t) 0xb01dface);
208+
status = pthread_create(&client_thread, &attr, ipc_test_client_thread, (void *)(uintptr_t) 0xb01dface);
214209

215210
if(status != 0) {
216211
jinue_error("error: could not create thread: %s", strerror(status));

0 commit comments

Comments
 (0)