deleted file mode 100644
@@ -1,62 +0,0 @@
-From 5c9048988e5000fb0f175afde05a23be2ef0fa15 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
-
-Skip tests which are known to be unreliable under load, typically because they
-care about timing.
-
-Upstream-Status: Inappropriate
-Signed-off-by: Ross Burton <ross.burton@arm.com>
-Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.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(+)
-
-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
-+++ b/tests/delay.test
-@@ -9,6 +9,7 @@
-
- . "${srcdir=.}/init.sh"
-
-+skip_ "Test not reliable under load"
- 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
-+++ b/tests/strace-r.test
-@@ -9,6 +9,7 @@
-
- . "${srcdir=.}/init.sh"
-
-+skip_ "Test not reliable under load"
- r_opt="${1:--r}"
-
- run_prog ../sleep-timing 0 "$TIMING_FILE"
@@ -11,7 +11,6 @@ SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/strace-${PV}.tar.xz \
file://run-ptest \
file://ptest-spacesave.patch \
file://0001-strace-fix-reproducibilty-issues.patch \
- file://skip-load.patch \
file://0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch \
file://0002-tests-Replace-off64_t-with-off_t.patch \
file://0001-m4-Backport-ax_prog_cc_for_build.m4-macros.patch \
@@ -56,17 +55,17 @@ do_install_ptest() {
-i ${D}/${PTEST_PATH}/${TESTDIR}/Makefile
}
+PTEST_SKIP_DIR = "${PTEST_PATH}/tests"
+
+# These tests care about timing
+PTEST_SKIP[clock_nanosleep.gen.test] = "Test not reliable under load"
+PTEST_SKIP[delay.test] = "Test not reliable under load"
+PTEST_SKIP[nanosleep.gen.test] = "Test not reliable under load"
+PTEST_SKIP[strace-r.test] = "Test not reliable under load"
+
# Too long without output for ptest-runner on qemuriscv64. Keyed on riscv64, as
# strace is not machine-specific, so also skipped on riscv64 hardware.
-STRACE_PTEST_SKIP ?= ""
-STRACE_PTEST_SKIP:riscv64 = "qual_fault-syscall"
-
-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
-}
+PTEST_SKIP[qual_fault-syscall.test] = "${@ptest_skip_if('riscv64', 'Too slow under QEMU on riscv64', d)}"
RDEPENDS:${PN}-ptest += "make coreutils grep gawk sed locale-base-en-us"
ptest-summary (qemux86-64): PASSED: 1173, SKIPPED: 352, FAILED: 0 SKIPPED: clock_nanosleep.gen.test SKIPPED: delay.test SKIPPED: nanosleep.gen.test SKIPPED: strace-r.test Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech> --- .../strace/strace/skip-load.patch | 62 ------------------- meta/recipes-devtools/strace/strace_7.3.bb | 19 +++--- 2 files changed, 9 insertions(+), 72 deletions(-) delete mode 100644 meta/recipes-devtools/strace/strace/skip-load.patch