]> git.notmuchmail.org Git - notmuch/commitdiff
test: fix printf format
authorDavid Bremner <david@tethera.net>
Thu, 22 Sep 2016 11:11:42 +0000 (08:11 -0300)
committerDavid Bremner <david@tethera.net>
Thu, 22 Sep 2016 11:11:42 +0000 (08:11 -0300)
notmuch_status_t is an integer type, printing it as a string is a very
bad idea.

test/notmuch-test.h

index d39febbe8f2fe910191d98146a610f0272e6d592..45d03d67540a795540da7287e1212d460b6289af 100644 (file)
@@ -7,7 +7,7 @@ inline static void
 expect0(int line, notmuch_status_t ret)
 {
    if (ret) {
-       fprintf (stderr, "line %d: %s\n", line, ret);
+       fprintf (stderr, "line %d: %d\n", line, ret);
        exit (1);
    }
 }