Skip to content

Commit

Permalink
pthread_rwlock_unlock: skip the tst on NuttX too
Browse files Browse the repository at this point in the history
Signed-off-by: Shoukui Zhang <[email protected]>
Signed-off-by: Cyril Hrubis <[email protected]>
  • Loading branch information
Zhangshoukui authored and metan-ucw committed Jan 4, 2024
1 parent 63f7151 commit ec6651e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ int main(void)
static pthread_rwlock_t rwlock;
int rc;

#ifdef __linux__
printf("Unlocking uninitialized rwlock is undefined on Linux\n");
#if defined(__linux__) || defined(__NuttX__)
printf("Unlocking uninitialized rwlock is undefined on this OS\n");
return PTS_UNSUPPORTED;
#endif

Expand Down

0 comments on commit ec6651e

Please sign in to comment.