Skip to content

Commit

Permalink
Fix pthread-lock-return test on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Sep 27, 2023
1 parent 138a482 commit 7f9ec9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/regression/04-mutex/58-pthread-lock-return.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void *t_fun(void *arg) {

#ifndef __APPLE__
if (!pthread_spin_lock(&spin)) {
__goblint_check(1); // reachable
__goblint_check(1); // TODO reachable (TODO for OSX)
g_spin++; // NORACE
pthread_spin_unlock(&spin);
}
Expand All @@ -79,12 +79,12 @@ void *t_fun(void *arg) {
}

if (!pthread_spin_trylock(&spin)) {
__goblint_check(1); // reachable
__goblint_check(1); // TODO reachable (TODO for OSX)
g_spin++; // NORACE
pthread_spin_unlock(&spin);
}
else {
__goblint_check(1); // reachable
__goblint_check(1); // TODO reachable (TODO for OSX)
}
#endif

Expand Down

0 comments on commit 7f9ec9a

Please sign in to comment.