aports/main/libuv/fix-test-musl.patch
2026-04-13 08:44:13 +00:00

14 lines
544 B
Diff

diff --git a/test/test-thread-priority.c b/test/test-thread-priority.c
index acc3385..a083f00 100644
--- a/test/test-thread-priority.c
+++ b/test/test-thread-priority.c
@@ -100,7 +100,7 @@ TEST_IMPL(thread_priority) {
uv_sem_destroy(&sem);
/* Now that the thread no longer exists, verify that the relevant error is returned */
-#if !defined(__ANDROID__)
+#if defined(__GLIBC__)
ASSERT_EQ(UV_ESRCH, uv_thread_getpriority(task_id, &priority));
ASSERT_EQ(UV_ESRCH, uv_thread_setpriority(task_id, UV_THREAD_PRIORITY_LOWEST));
#endif