From: Mark Wooding Date: Fri, 8 Nov 2019 17:32:50 +0000 (+0000) Subject: lib/t/toytest.c: Make test more perspicuous. X-Git-Tag: subdirmk/0.1~136 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=70d9190ea6856e0eef15ee01cb22d11371d96b6c lib/t/toytest.c: Make test more perspicuous. What was I thinking? --- diff --git a/lib/t/toytest.c b/lib/t/toytest.c index 233a429..0971427 100644 --- a/lib/t/toytest.c +++ b/lib/t/toytest.c @@ -9,7 +9,7 @@ int main(void) const char *p; p = greeting(); - if (!STRNCMP(p, ==, "Hello", 5)) { + if (STRNCMP(p, !=, "Hello", 5)) { fprintf(stderr, "greeting `%s' has bad salutation\n", p); exit(1); }