diff options
author | Randy MacLeod <Randy.MacLeod@windriver.com> | 2023-10-31 19:47:08 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-05 11:28:31 +0000 |
commit | f59eece1a09128687806cac5b6c9797d567e4705 (patch) | |
tree | 4e9852b3b6eab48c691197cb124dd2414cdefa8a | |
parent | 03d5588ef5535244a0f1384bf53fd42391c63be0 (diff) | |
download | poky-f59eece1a09128687806cac5b6c9797d567e4705.tar.gz |
strace: backport fix for so_peerpidfd-test
Backport the fix for the so_peerpidfd-test:
44cf51a38 tests: fix so_peerpidfd test
and drop the patch that skipped that test.
(From OE-Core rev: 0a52da6530ebba08f9a3b30d5098b0c3ef1730d7)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
3 files changed, 33 insertions, 26 deletions
diff --git a/meta/recipes-devtools/strace/strace/skip-test-so_peerpidfd.gen.test.patch b/meta/recipes-devtools/strace/strace/skip-test-so_peerpidfd.gen.test.patch deleted file mode 100644 index 5c73e1f10e..0000000000 --- a/meta/recipes-devtools/strace/strace/skip-test-so_peerpidfd.gen.test.patch +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | From 002d9f2512245536dfc8d62db429d97e2216ec3a Mon Sep 17 00:00:00 2001 | ||
2 | From: Randy MacLeod <Randy.MacLeod@windriver.com> | ||
3 | Date: Fri, 6 Oct 2023 12:08:23 -0700 | ||
4 | Subject: [PATCH] skip tests/so_peerpidfd.gen.test | ||
5 | |||
6 | Upstream-Status: Inappropriate | ||
7 | |||
8 | Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> | ||
9 | --- | ||
10 | tests/so_peerpidfd.gen.test | 1 + | ||
11 | 1 file changed, 1 insertion(+) | ||
12 | |||
13 | diff --git a/tests/so_peerpidfd.gen.test b/tests/so_peerpidfd.gen.test | ||
14 | index 64ad3a2..f89da9f 100755 | ||
15 | --- a/tests/so_peerpidfd.gen.test | ||
16 | +++ b/tests/so_peerpidfd.gen.test | ||
17 | @@ -1,4 +1,5 @@ | ||
18 | #!/bin/sh -efu | ||
19 | # Generated by ./tests/gen_tests.sh from ./tests/gen_tests.in (so_peerpidfd --trace=getsockopt -y); do not edit. | ||
20 | . "${srcdir=.}/init.sh" | ||
21 | +skip_ "Test fails due to apparently trivial log format differences" | ||
22 | run_strace_match_diff --trace=getsockopt -y | ||
23 | -- | ||
24 | 2.39.0 | ||
25 | |||
diff --git a/meta/recipes-devtools/strace/strace/tests-fix-so_peerpidfd-test.patch b/meta/recipes-devtools/strace/strace/tests-fix-so_peerpidfd-test.patch new file mode 100644 index 0000000000..62f73d3643 --- /dev/null +++ b/meta/recipes-devtools/strace/strace/tests-fix-so_peerpidfd-test.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 44cf51a38cce1e90bb6c22208fa45f95cdcc8f5d Mon Sep 17 00:00:00 2001 | ||
2 | From: "Dmitry V. Levin" <ldv@strace.io> | ||
3 | Date: Sat, 14 Oct 2023 08:00:00 +0000 | ||
4 | Subject: [PATCH] tests: fix so_peerpidfd test | ||
5 | |||
6 | * tests/so_peerpidfd.c (print_pidfd): Fix expected output. | ||
7 | |||
8 | Fixes: v6.5~38 "net: implement decoding of SO_PEERPIDFD socket option" | ||
9 | Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2243631 | ||
10 | |||
11 | Upstream-Status: Backport [https://github.com/strace/strace/commit/44cf51a38cce1e90bb6c22208fa45f95cdcc8f5d] | ||
12 | Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> | ||
13 | --- | ||
14 | tests/so_peerpidfd.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/tests/so_peerpidfd.c b/tests/so_peerpidfd.c | ||
18 | index 33988edec..dfad1c434 100644 | ||
19 | --- a/tests/so_peerpidfd.c | ||
20 | +++ b/tests/so_peerpidfd.c | ||
21 | @@ -37,7 +37,7 @@ print_pidfd(int *p) | ||
22 | if (rc < 0) | ||
23 | printf("%p", p); | ||
24 | else | ||
25 | - printf("%d%s", *p, pidfd_suffix); | ||
26 | + printf("[%d%s]", *p, pidfd_suffix); | ||
27 | } | ||
28 | |||
29 | static void | ||
30 | -- | ||
31 | 2.34.1 | ||
32 | |||
diff --git a/meta/recipes-devtools/strace/strace_6.5.bb b/meta/recipes-devtools/strace/strace_6.5.bb index d6475e8db9..d1536b1e8d 100644 --- a/meta/recipes-devtools/strace/strace_6.5.bb +++ b/meta/recipes-devtools/strace/strace_6.5.bb | |||
@@ -14,7 +14,7 @@ SRC_URI = "https://strace.io/files/${PV}/strace-${PV}.tar.xz \ | |||
14 | file://skip-load.patch \ | 14 | file://skip-load.patch \ |
15 | file://0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch \ | 15 | file://0001-configure-Use-autoconf-macro-to-detect-largefile-sup.patch \ |
16 | file://0002-tests-Replace-off64_t-with-off_t.patch \ | 16 | file://0002-tests-Replace-off64_t-with-off_t.patch \ |
17 | file://skip-test-so_peerpidfd.gen.test.patch \ | 17 | file://tests-fix-so_peerpidfd-test.patch \ |
18 | " | 18 | " |
19 | SRC_URI[sha256sum] = "dfb051702389e1979a151892b5901afc9e93bbc1c70d84c906ade3224ca91980" | 19 | SRC_URI[sha256sum] = "dfb051702389e1979a151892b5901afc9e93bbc1c70d84c906ade3224ca91980" |
20 | 20 | ||