Skip to content

Commit

Permalink
Fix and cleanup IPC test (#92)
Browse files Browse the repository at this point in the history
* Remove unnecessary check (copy-paste mistake).
* Ensure thread attributes are actually used by `pthread_create()`;
  • Loading branch information
phaubertin authored Nov 21, 2024
1 parent dece0b4 commit 3d93a3a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions userspace/testapp/tests/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,8 @@ void run_ipc_test(void) {
return;
}

if(status != 0) {
jinue_error("error: pthread_attr_init() failed: %s", strerror(status));
return;
}

pthread_t client_thread;
status = pthread_create(&client_thread, NULL, ipc_test_client_thread, (void *)(uintptr_t) 0xb01dface);
status = pthread_create(&client_thread, &attr, ipc_test_client_thread, (void *)(uintptr_t) 0xb01dface);

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

0 comments on commit 3d93a3a

Please sign in to comment.