tests: don't print '\0' character
authorMarek Chalupa <mchqwerty@gmail.com>
Wed, 19 Nov 2014 10:58:26 +0000 (11:58 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 19 Nov 2014 11:51:44 +0000 (13:51 +0200)
print "" (which results in no output) instead of
printing '\0' (which is not visible, but is there)

Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
tests/test-runner.c

index 09c50e2..d965a43 100644 (file)
@@ -129,8 +129,8 @@ test_set_timeout(unsigned int to)
        fprintf(stderr, "Timeout was %sset", re ? "re-" : "");
 
        if (to != 0)
-               fprintf(stderr, " to %d second%c from now.\n",
-                       to, to > 1 ? 's' : 0);
+               fprintf(stderr, " to %d second%s from now.\n",
+                       to, to > 1 ? "s" : "");
        else
                fprintf(stderr, " off.\n");
 }