c57794fe1f
the origin ltp testcases has many build warnings which consider error in Nuttx, thus to apply the patches to fix these build warnings Signed-off-by: guoshichao <guoshichao@xiaomi.com>
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 026162a24a0ed7f11c55c22e03501a4f6bb3dc94 Mon Sep 17 00:00:00 2001
|
|
From: anjiahao <anjiahao@xiaomi.com>
|
|
Date: Tue, 10 Jan 2023 11:50:03 +0800
|
|
Subject: [PATCH 14/21] pthread_kill:add usleep aviod semcount overturn
|
|
|
|
VELAPLATFO-4504
|
|
|
|
A short-term infinite loop will cause semcount
|
|
to exceed the limit in sem_post
|
|
|
|
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
|
|
Change-Id: I25c8e10ce4166f0b681f462157a02f8a6add2ebb
|
|
---
|
|
.../conformance/interfaces/pthread_kill/8-1.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c
|
|
index f1d05edbe..4a12ee0ab 100644
|
|
--- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c
|
|
+++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c
|
|
@@ -198,6 +198,8 @@ static void *test(void *arg LTP_ATTRIBUTE_UNUSED)
|
|
UNRESOLVED(ret,
|
|
"pthread_kill returned an unexpected error");
|
|
}
|
|
+
|
|
+ usleep(10000);
|
|
}
|
|
|
|
return NULL;
|
|
--
|
|
2.40.1
|
|
|