mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
strace: skip nanosleep test
Add nanosleep to the skipped tests since it's load-sensitive
fixes:
failed ptests {'strace': ['nanosleep.gen.test', 'nanosleep.gen']}
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15524
(From OE-Core rev: b145720a0ceb1eb8eec33a62330f2b13891c508c)
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
d18cce7914
commit
a3c741b07c
|
|
@ -1,6 +1,6 @@
|
|||
From d0c5cb43f0d1760323a20abb62cb8cf3113d3fff Mon Sep 17 00:00:00 2001
|
||||
From 46eceefb3bd184354cdaf0fd3dff6f2ad979aad9 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@arm.com>
|
||||
Date: Mon, 31 Jan 2022 17:40:13 +0000
|
||||
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
|
||||
|
|
@ -8,14 +8,16 @@ 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 +
|
||||
3 files changed, 3 insertions(+)
|
||||
4 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/tests/clock_nanosleep.gen.test b/tests/clock_nanosleep.gen.test
|
||||
index 7a6025b..f0e6dbb 100755
|
||||
index 7a6025bbd..f0e6dbb73 100755
|
||||
--- a/tests/clock_nanosleep.gen.test
|
||||
+++ b/tests/clock_nanosleep.gen.test
|
||||
@@ -1,4 +1,5 @@
|
||||
|
|
@ -25,26 +27,39 @@ index 7a6025b..f0e6dbb 100755
|
|||
+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..6172c04 100755
|
||||
index f74e27f1e..1510c7647 100755
|
||||
--- a/tests/delay.test
|
||||
+++ b/tests/delay.test
|
||||
@@ -8,6 +8,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
. "${srcdir=.}/init.sh"
|
||||
+skip_ "Test not reliable under load"
|
||||
|
||||
+skip_ "Test not reliable under load"
|
||||
while read -r denter dexit denter_us dexit_us; do
|
||||
[ -n "$denter" ] || continue
|
||||
diff --git a/tests/strace-r.test b/tests/strace-r.test
|
||||
index 8299737..d89c7df 100755
|
||||
--- a/tests/strace-r.test
|
||||
+++ b/tests/strace-r.test
|
||||
@@ -8,6 +8,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
diff --git a/tests/nanosleep.gen.test b/tests/nanosleep.gen.test
|
||||
index 41928ded8..f8a87cb8e 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 829973753..e89423485 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 0
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user