chiark / gitweb /
Workaround for broken GCC 2.95 installs
authorRichard Kettlewell <rjk@greenend.org.uk>
Tue, 29 Apr 2008 17:55:43 +0000 (18:55 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Tue, 29 Apr 2008 17:55:43 +0000 (18:55 +0100)
lib/t-syscalls.c

index 6fcf413b12cd872a6551f1dc8f760d1bb639a917..0566fdea4219fe7178e4551ebc9f627b9bf4cde6 100644 (file)
@@ -70,6 +70,10 @@ void test_syscalls(void) {
   insist(e != 0);
   check_string(e, "xyzzy");
 
   insist(e != 0);
   check_string(e, "xyzzy");
 
+#ifdef LLONG_MAX
+  /* Debian's gcc 2.95 cannot easily be persuaded to define LLONG_MAX even in
+   * extensions modes.  If your compiler is this broken you just don't get the
+   * full set of tests.  Deal. */
   nn = 0;
   e = 0;
   sprintf(buf, "%lld", LLONG_MAX);
   nn = 0;
   e = 0;
   sprintf(buf, "%lld", LLONG_MAX);
@@ -90,7 +94,8 @@ void test_syscalls(void) {
   insist(xstrtoll(&nn, buf, &e, 0) == 0);
   insist(nn == LLONG_MAX);
   insist(e != 0);
   insist(xstrtoll(&nn, buf, &e, 0) == 0);
   insist(nn == LLONG_MAX);
   insist(e != 0);
-  check_string(e, "xyzzy");  
+  check_string(e, "xyzzy");
+#endif
 }
 
 /*
 }
 
 /*