chiark / gitweb /
check_string() should check that GOT is non-NULL, not WANT!
authorRichard Kettlewell <richard@deodand>
Thu, 17 Jun 2010 20:05:35 +0000 (21:05 +0100)
committerRichard Kettlewell <richard@deodand>
Thu, 17 Jun 2010 20:05:35 +0000 (21:05 +0100)
libtests/test.h

index cada395..87f0224 100644 (file)
@@ -95,7 +95,7 @@ extern int skipped;
   const char *got = GOT;                                                \
   const char *want = WANT;                                              \
                                                                         \
-  if(want == 0) {                                                       \
+  if(got == 0) {                                                       \
     fprintf(stderr, "%s:%d: %s returned 0\n",                           \
             __FILE__, __LINE__, #GOT);                                  \
     count_error();                                                      \