79c4324644
Change-Id: I2d302dda68298877c65c99147f5bf22186a59aac
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 51e4c7c4c88b424b13cddbc5d1e3804d34d88df0 Mon Sep 17 00:00:00 2001
|
|
From: Bihong Yu <yubihong@huawei.com>
|
|
Date: Mon, 17 Jan 2022 16:46:46 +0100
|
|
Subject: [PATCH 10/13] testutils: Terminate usage string with a new line
|
|
|
|
If a test binary is executed with an argument then usage
|
|
information is printed out (that no arguments are accepted and
|
|
what environment variables affect execution). The string is
|
|
printed onto stderr but it is not terminated with a newline
|
|
character producing not so nice output.
|
|
|
|
|
|
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Signed-off-by: Bihong Yu <yubihong@huawei.com>
|
|
---
|
|
tests/testutils.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/testutils.c b/tests/testutils.c
|
|
index 2aeaee3306..a2cb6666c2 100644
|
|
--- a/tests/testutils.c
|
|
+++ b/tests/testutils.c
|
|
@@ -804,7 +804,7 @@ int virTestMain(int argc,
|
|
fprintf(stderr, "Usage: %s\n", argv[0]);
|
|
fputs("effective environment variables:\n"
|
|
"VIR_TEST_VERBOSE set to show names of individual tests\n"
|
|
- "VIR_TEST_DEBUG set to show information for debugging failures",
|
|
+ "VIR_TEST_DEBUG set to show information for debugging failures\n",
|
|
stderr);
|
|
return EXIT_FAILURE;
|
|
}
|
|
--
|
|
2.33.0
|
|
|