]>
Commit | Line | Data |
---|---|---|
b9b8764a GKH |
1 | From 31974122cfdeaf56abc18d8ab740d580d9833e90 Mon Sep 17 00:00:00 2001 |
2 | From: Jakub Kicinski <kuba@kernel.org> | |
3 | Date: Fri, 29 Mar 2024 09:05:59 -0700 | |
4 | Subject: selftests: reuseaddr_conflict: add missing new line at the end of the output | |
5 | ||
6 | From: Jakub Kicinski <kuba@kernel.org> | |
7 | ||
8 | commit 31974122cfdeaf56abc18d8ab740d580d9833e90 upstream. | |
9 | ||
10 | The netdev CI runs in a VM and captures serial, so stdout and | |
11 | stderr get combined. Because there's a missing new line in | |
12 | stderr the test ends up corrupting KTAP: | |
13 | ||
14 | # Successok 1 selftests: net: reuseaddr_conflict | |
15 | ||
16 | which should have been: | |
17 | ||
18 | # Success | |
19 | ok 1 selftests: net: reuseaddr_conflict | |
20 | ||
21 | Fixes: 422d8dc6fd3a ("selftest: add a reuseaddr test") | |
22 | Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com> | |
23 | Link: https://lore.kernel.org/r/20240329160559.249476-1-kuba@kernel.org | |
24 | Signed-off-by: Jakub Kicinski <kuba@kernel.org> | |
25 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
26 | --- | |
27 | tools/testing/selftests/net/reuseaddr_conflict.c | 2 +- | |
28 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
29 | ||
30 | --- a/tools/testing/selftests/net/reuseaddr_conflict.c | |
31 | +++ b/tools/testing/selftests/net/reuseaddr_conflict.c | |
32 | @@ -109,6 +109,6 @@ int main(void) | |
33 | fd1 = open_port(0, 1); | |
34 | if (fd1 >= 0) | |
35 | error(1, 0, "Was allowed to create an ipv4 reuseport on an already bound non-reuseport socket with no ipv6"); | |
36 | - fprintf(stderr, "Success"); | |
37 | + fprintf(stderr, "Success\n"); | |
38 | return 0; | |
39 | } |