| From 9c6825d070abc9b414c96beff2a46b5166da456d Mon Sep 17 00:00:00 2001 |
| From: Shoukui Zhang <zhangshoukui@xiaomi.com> |
| Date: Tue, 9 May 2023 22:37:01 +0800 |
| Subject: [PATCH] pthread_rwlock_unlock: follow linux |
| |
| Signed-off-by: Shoukui Zhang <zhangshoukui@xiaomi.com> |
| --- |
| .../conformance/interfaces/pthread_rwlock_unlock/4-1.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-1.c |
| index 2db9e4cc6..5d7c2c565 100644 |
| --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-1.c |
| +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-1.c |
| @@ -31,7 +31,7 @@ int main(void) |
| static pthread_rwlock_t rwlock; |
| int rc; |
| |
| -#ifdef __linux__ |
| +#if defined(__linux__) || defined(__NuttX__) |
| printf("Unlocking uninitialized rwlock is undefined on Linux\n"); |
| return PTS_UNSUPPORTED; |
| #endif |
| -- |
| 2.25.1 |
| |