]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/link-order2.at: Simplify logic to be a bit more self
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 7 Nov 2006 17:53:22 +0000 (17:53 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 7 Nov 2006 17:53:22 +0000 (17:53 +0000)
documenting.  Suggested by Gary V. Vaughan.

ChangeLog
tests/link-order2.at

index 788666bc9fa9801d1164d88920e02421bfa20c7b..0d33fe1ff9a1de98da70e674be3c68fe7acdfc17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * tests/link-order2.at: Simplify logic to be a bit more self
+       documenting.  Suggested by Gary V. Vaughan.
+
 2006-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * tests/link-order2.at: Add missing $bindir setting.  Prevent
index 329d4589e2f8286422b5eab45acc8e9ba4808599..ac54edb4b50f39a27ff10742190dc7c12cada5a7 100644 (file)
@@ -41,18 +41,21 @@ EOF
 
 cat >main.c <<\EOF
 #include <math.h>
+#include <stdlib.h>
 extern double b (double);
 extern double four;
 double four = 4.0;
 int main (void)
 {
-  /* The ! is to invert C true to shell true
-   * The function b should call our sin (that returns 0) and not libm's
+  /* The function b should call our sin (that returns 0) and not libm's
    * (in the latter case, b returns approximately 1)
    * the sqrt is to force linking against libm
    * the variable four is to prevent most compiler optimizations
    */
-  return !( fabs (b (3.1415 / 2.)) < 0.01 && fabs (sqrt (four) - 2.) < 0.01 );
+  int status = EXIT_FAILURE;
+  if (fabs (b (3.1415 / 2.)) < 0.01 && fabs (sqrt (four) - 2.) < 0.01)
+    status = EXIT_SUCCESS;
+  return status;
 }
 EOF