diff options
author | Ross Burton <ross@burtonini.com> | 2022-01-31 17:40:13 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-03 09:05:14 +0000 |
commit | 1e7fe9ea1e2313c505e31a4da9bb3b279b9938b6 (patch) | |
tree | 1dec230456ceac887d006c031199b812b18f3f41 /meta/recipes-devtools/strace/strace | |
parent | 2d4589316c34d9a64e1885c51e90e621ad895611 (diff) | |
download | poky-1e7fe9ea1e2313c505e31a4da9bb3b279b9938b6.tar.gz |
strace: skip a number of load-sensitive tests
Some tests are very load-sensitive as they depend on sleep() calls to
take a precise amount of time. These will randomly fail in the automated
QA, so skip them.
(From OE-Core rev: ea6933d2500827eae5482a32d5037e0429cd096a)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/strace/strace')
-rw-r--r-- | meta/recipes-devtools/strace/strace/skip-load.patch | 55 |
1 files changed, 55 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..fa3ddb8ddc --- /dev/null +++ b/meta/recipes-devtools/strace/strace/skip-load.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | Skip tests which are known to be unreliable under load, typically because they | ||
2 | care about timing. | ||
3 | |||
4 | Upstream-Status: Inappropriate | ||
5 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
6 | |||
7 | diff --git a/tests/clock_nanosleep.gen.test b/tests/clock_nanosleep.gen.test | ||
8 | index 7a6025b..f0e6dbb 100755 | ||
9 | --- a/tests/clock_nanosleep.gen.test | ||
10 | +++ b/tests/clock_nanosleep.gen.test | ||
11 | @@ -1,4 +1,5 @@ | ||
12 | #!/bin/sh -efu | ||
13 | # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (clock_nanosleep -e trace=clock_nanosleep,clock_gettime); do not edit. | ||
14 | . "${srcdir=.}/init.sh" | ||
15 | +skip_ "Test not reliable under load" | ||
16 | run_strace_match_diff -e trace=clock_nanosleep,clock_gettime | ||
17 | diff --git a/tests/delay.test b/tests/delay.test | ||
18 | index f74e27f..328087e 100755 | ||
19 | --- a/tests/delay.test | ||
20 | +++ b/tests/delay.test | ||
21 | @@ -9,6 +9,8 @@ | ||
22 | |||
23 | . "${srcdir=.}/init.sh" | ||
24 | |||
25 | +skip_ "Test not reliable under load" | ||
26 | + | ||
27 | while read -r denter dexit denter_us dexit_us; do | ||
28 | [ -n "$denter" ] || continue | ||
29 | |||
30 | diff --git a/tests/strace-T.test b/tests/strace-T.test | ||
31 | index adca3e8..d4acfe9 100755 | ||
32 | --- a/tests/strace-T.test | ||
33 | +++ b/tests/strace-T.test | ||
34 | @@ -9,6 +9,8 @@ | ||
35 | |||
36 | . "${srcdir=.}/init.sh" | ||
37 | |||
38 | +skip_ "Test not reliable under load" | ||
39 | + | ||
40 | T_opt="${1:--T}" | ||
41 | |||
42 | run_prog ../sleep 0 | ||
43 | diff --git a/tests/strace-r.test b/tests/strace-r.test | ||
44 | index 8299737..c360344 100755 | ||
45 | --- a/tests/strace-r.test | ||
46 | +++ b/tests/strace-r.test | ||
47 | @@ -9,6 +9,8 @@ | ||
48 | |||
49 | . "${srcdir=.}/init.sh" | ||
50 | |||
51 | +skip_ "Test not reliable under load" | ||
52 | + | ||
53 | r_opt="${1:--r}" | ||
54 | |||
55 | run_prog ../sleep 0 | ||