diff options
Diffstat (limited to 'meta/recipes-devtools/strace/strace/skip-load.patch')
-rw-r--r-- | meta/recipes-devtools/strace/strace/skip-load.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace/skip-load.patch b/meta/recipes-devtools/strace/strace/skip-load.patch new file mode 100644 index 0000000000..fe737d8f9a --- /dev/null +++ b/meta/recipes-devtools/strace/strace/skip-load.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From 3af7272a3435fc79e5da729155480a346ccf2d44 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ross Burton <ross.burton@arm.com> | ||
3 | Date: Mon, 31 Jan 2022 17:40:13 +0000 | ||
4 | Subject: [PATCH] strace: skip a number of load-sensitive tests | ||
5 | |||
6 | Skip tests which are known to be unreliable under load, typically because they | ||
7 | care about timing. | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
11 | --- | ||
12 | tests/clock_nanosleep.gen.test | 1 + | ||
13 | tests/delay.test | 1 + | ||
14 | tests/strace-r.test | 1 + | ||
15 | 3 files changed, 3 insertions(+) | ||
16 | |||
17 | diff --git a/tests/clock_nanosleep.gen.test b/tests/clock_nanosleep.gen.test | ||
18 | index 7a6025b..f0e6dbb 100755 | ||
19 | --- a/tests/clock_nanosleep.gen.test | ||
20 | +++ b/tests/clock_nanosleep.gen.test | ||
21 | @@ -1,4 +1,5 @@ | ||
22 | #!/bin/sh -efu | ||
23 | # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (clock_nanosleep -e trace=clock_nanosleep,clock_gettime); do not edit. | ||
24 | . "${srcdir=.}/init.sh" | ||
25 | +skip_ "Test not reliable under load" | ||
26 | run_strace_match_diff -e trace=clock_nanosleep,clock_gettime | ||
27 | diff --git a/tests/delay.test b/tests/delay.test | ||
28 | index f74e27f..6172c04 100755 | ||
29 | --- a/tests/delay.test | ||
30 | +++ b/tests/delay.test | ||
31 | @@ -8,6 +8,7 @@ | ||
32 | # SPDX-License-Identifier: GPL-2.0-or-later | ||
33 | |||
34 | . "${srcdir=.}/init.sh" | ||
35 | +skip_ "Test not reliable under load" | ||
36 | |||
37 | while read -r denter dexit denter_us dexit_us; do | ||
38 | [ -n "$denter" ] || continue | ||
39 | diff --git a/tests/strace-r.test b/tests/strace-r.test | ||
40 | index 8299737..d89c7df 100755 | ||
41 | --- a/tests/strace-r.test | ||
42 | +++ b/tests/strace-r.test | ||
43 | @@ -8,6 +8,7 @@ | ||
44 | # SPDX-License-Identifier: GPL-2.0-or-later | ||
45 | |||
46 | . "${srcdir=.}/init.sh" | ||
47 | +skip_ "Test not reliable under load" | ||
48 | |||
49 | r_opt="${1:--r}" | ||
50 | |||