hmap-test: Skip test instead of reporting success on GCC 4.3. fbsd72-i386-build27 fc11-i386-build13 fc11-x64-build14 lenny-x64-build35 sid-i386-build81
authorBen Pfaff <blp@gnu.org>
Mon, 5 Oct 2009 03:37:10 +0000 (20:37 -0700)
committerBen Pfaff <blp@gnu.org>
Mon, 5 Oct 2009 03:37:10 +0000 (20:37 -0700)
Commit 1dfc6b1 "hmap-test: Disable tests that GCC 4.3 miscompiles."
disabled some of the hmap-tests, the ones that GCC 4.3 miscompiles.
However, it still reported "success" if the remaining tests succeeded.
John Darrington suggested that reporting that the test was skipped was
more accurate, so this commit does so.

tests/libpspp/hmap-test.c

index 4e072c94f2533ed9ae1f85c707216aebf9ef49d6..4ca7f92fd73f48316bcc53c1f388bfab69427a11 100644 (file)
@@ -1000,5 +1000,12 @@ main (void)
 
   putchar ('\n');
 
+#if __GNUC__ == 4 && __GNUC_MINOR__ == 3
+  /* We skipped some of the tests, so return a value that
+     Automake will interpret as "skipped", instead of one that
+     means success. */
+  return 77;
+#else
   return 0;
+#endif
 }