[PATCH] testutils: Terminate usage string with a new line

Michal Privoznik posted 1 patch 2 years, 3 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/fbe33e65879d6efef0b03df487b6e7a4ef3225d0.1642434983.git.mprivozn@redhat.com
tests/testutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] testutils: Terminate usage string with a new line
Posted by Michal Privoznik 2 years, 3 months ago
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>
---

Pushed as trivial.

 tests/testutils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/testutils.c b/tests/testutils.c
index 322c3b9400..2b37c1965d 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -826,7 +826,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.34.1