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: v0.5.1~27^2~109 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=70d9190ea6856e0eef15ee01cb22d11371d96b6c;p=secnet.git 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); }