@@ -1,4 +1,4 @@
-From 5c9048988e5000fb0f175afde05a23be2ef0fa15 Mon Sep 17 00:00:00 2001
+From 006dffd23c4067b12ca9c9ef3ae6b20138d646de Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@arm.com>
Date: Sat, 30 Aug 2025 00:47:03 +0200
Subject: [PATCH] strace: skip a number of load-sensitive tests
@@ -9,23 +9,13 @@ care about timing.
Upstream-Status: Inappropriate
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
+Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com>
+
---
- tests/clock_nanosleep.gen.test | 1 +
- tests/delay.test | 1 +
- tests/nanosleep.gen.test | 1 +
- tests/strace-r.test | 1 +
- 4 files changed, 4 insertions(+)
+ tests/delay.test | 1 +
+ tests/strace-r.test | 1 +
+ 2 files changed, 2 insertions(+)
-diff --git a/tests/clock_nanosleep.gen.test b/tests/clock_nanosleep.gen.test
-index 7a6025b..f0e6dbb 100755
---- a/tests/clock_nanosleep.gen.test
-+++ b/tests/clock_nanosleep.gen.test
-@@ -1,4 +1,5 @@
- #!/bin/sh -efu
- # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (clock_nanosleep -e trace=clock_nanosleep,clock_gettime); do not edit.
- . "${srcdir=.}/init.sh"
-+skip_ "Test not reliable under load"
- run_strace_match_diff -e trace=clock_nanosleep,clock_gettime
diff --git a/tests/delay.test b/tests/delay.test
index f74e27f..1510c76 100755
--- a/tests/delay.test
@@ -38,16 +28,6 @@ index f74e27f..1510c76 100755
while read -r denter dexit denter_us dexit_us; do
[ -n "$denter" ] || continue
-diff --git a/tests/nanosleep.gen.test b/tests/nanosleep.gen.test
-index 41928de..f8a87cb 100755
---- a/tests/nanosleep.gen.test
-+++ b/tests/nanosleep.gen.test
-@@ -1,4 +1,5 @@
- #!/bin/sh -efu
- # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (nanosleep -a20 ); do not edit.
- . "${srcdir=.}/init.sh"
-+skip_ "Test not reliable under load"
- run_strace_match_diff -a20
diff --git a/tests/strace-r.test b/tests/strace-r.test
index a85558d..9ae9677 100755
--- a/tests/strace-r.test
@@ -60,3 +40,6 @@ index a85558d..9ae9677 100755
r_opt="${1:--r}"
run_prog ../sleep-timing 0 "$TIMING_FILE"
+--
+2.43.0
+
@@ -61,11 +61,18 @@ do_install_ptest() {
STRACE_PTEST_SKIP ?= ""
STRACE_PTEST_SKIP:riscv64 = "qual_fault-syscall"
+STRACE_PTEST_SKIP_LOAD = "nanosleep.gen clock_nanosleep.gen"
+
do_install_ptest:append() {
for t in ${STRACE_PTEST_SKIP}; do
sed -i -e '1a . "${srcdir=.}/init.sh"\nskip_ "Too slow under QEMU on riscv64"' \
${D}${PTEST_PATH}/${TESTDIR}/$t.test
done
+
+ for t in ${STRACE_PTEST_SKIP_LOAD}; do
+ sed -i -e '1a . "${srcdir=.}/init.sh"\nskip_ "Test not reliable under load"' \
+ ${D}${PTEST_PATH}/${TESTDIR}/$t.test
+ done
}
RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed locale-base-en-us"
skip-load.patch is not sufficient to skip nanosleep.gen.test, and clock_nanosleep.gen.test, which fail intermittently in ptests. nanosleep.gen.test, and clock_nanosleep.gen.test, are regenerated by gen_tests.sh during compilation after patches are applied. The changes from skip-load.patch are lost and the tests on the target are not skipped. This fix adds the "skip_" directive to the .gen tests after do_compile and after any .gen test files are regenerated. Fixes YOCTO #15524 [https://bugzilla.yoctoproject.org/show_bug.cgi?id=15524] Signed-off-by: Kris Gavvala <kris.gavvala@windriver.com> --- .../strace/strace/skip-load.patch | 35 +++++-------------- meta/recipes-devtools/strace/strace_7.3.bb | 7 ++++ 2 files changed, 16 insertions(+), 26 deletions(-)