From: Richard Jones Date: Fri, 30 Apr 2010 22:12:34 +0000 (+0100) Subject: tests: In verbose mode, print dashes between each test. X-Git-Tag: 1.3.10~15 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=097266e01cfa28319834bf750649650f3c22006f;p=libguestfs.git tests: In verbose mode, print dashes between each test. Only affects tests when run with LIBGUESTFS_DEBUG=1. Lets you easily see when each test starts and ends. --- diff --git a/src/generator.ml b/src/generator.ml index 30d1038..cbed94b 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -6716,6 +6716,8 @@ int main (int argc, char *argv[]) iteri ( fun i test_name -> pr " test_num++;\n"; + pr " if (guestfs_get_verbose (g))\n"; + pr " printf (\"-------------------------------------------------------------------------------\\n\");\n"; pr " printf (\"%%3d/%%3d %s\\n\", test_num, nr_tests);\n" test_name; pr " if (%s () == -1) {\n" test_name; pr " printf (\"%s FAILED\\n\");\n" test_name;