]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
testutils: Terminate usage string with a new line
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Jan 2022 15:46:46 +0000 (16:46 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Jan 2022 15:53:21 +0000 (16:53 +0100)
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>
tests/testutils.c

index 322c3b94004c302825ca00463d3401198ef5d468..2b37c1965d3a885e4a2d03723d746dd68782310c 100644 (file)
@@ -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;
     }