From 70d9190ea6856e0eef15ee01cb22d11371d96b6c Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 8 Nov 2019 17:32:50 +0000 Subject: [PATCH] lib/t/toytest.c: Make test more perspicuous. What was I thinking? --- lib/t/toytest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.30.2