The important part of the value we assign to "netcat" is that it
contains whitespace, so drop everything else to highlight this
fact. Change the path to the socket so that it also contains
whitespace: this will not actually work outside of the test suite
at the moment, but we're going to fix that in an upcoming commit.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
tests/virnetsockettest.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/virnetsockettest.c b/tests/virnetsockettest.c
index c1d3e39856..557d781605 100644
--- a/tests/virnetsockettest.c
+++ b/tests/virnetsockettest.c
@@ -666,15 +666,15 @@ mymain(void)
struct testSSHData sshData7 = {
.nodename = "somehost",
- .netcat = "/tmp/fo o/nc",
- .path = "/tmp/socket",
+ .netcat = "n c",
+ .path = "/tmp/sock et",
.expectOut = "-T -e none -- somehost sh -c '"
- "if '''\\''/tmp/fo
o/nc'\\'''' -q 2>&1 | grep \"requires an argument\"
>/dev/null 2>&1; then "
+ "if '''\\''n
c'\\'''' -q 2>&1 | grep \"requires an argument\"
>/dev/null 2>&1; then "
"ARG=-q0; "
"else "
"ARG=; "
"fi; "
- "'''\\''/tmp/fo
o/nc'\\'''' $ARG -U /tmp/socket"
+ "'''\\''n c'\\''''
$ARG -U /tmp/sock et"
"'\n",
};
VIR_WARNINGS_RESET
--
2.34.1