Author: ngie
Date: Sun Dec 20 04:52:53 2015
New Revision: 292496
URL: https://svnweb.freebsd.org/changeset/base/292496

Log:
  Skip the testcases on i386 (all the assertions fail) [*]
  
  Also, don't compile the ldexpl(3) testcases on platforms that don't support
  the libcall (technically only x86 right now). This makes this test buildable 
on
  arm*/mips*/powerpc*
  
  PR: 205449 [*]
  MFC after: 1 week
  Tested on: stable/10 (amd64/i386), head (amd64/i386)
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/tools/regression/lib/msun/test-invtrig.c

Modified: head/tools/regression/lib/msun/test-invtrig.c
==============================================================================
--- head/tools/regression/lib/msun/test-invtrig.c       Sun Dec 20 04:42:55 
2015        (r292495)
+++ head/tools/regression/lib/msun/test-invtrig.c       Sun Dec 20 04:52:53 
2015        (r292496)
@@ -61,14 +61,23 @@ __FBSDID("$FreeBSD$");
 #define test(func, x, result, excepts)                                 \
        test_tol(func, (x), (result), 0, (excepts))
 
-#define        testall_tol(prefix, x, result, tol, excepts) do {               
\
+#define        _testall_tol(prefix, x, result, tol, excepts) do {              
\
        test_tol(prefix, (double)(x), (double)(result),                 \
                 (tol) * ldexp(1.0, 1 - DBL_MANT_DIG), (excepts));      \
        test_tol(prefix##f, (float)(x), (float)(result),                \
                 (tol) * ldexpf(1.0, 1 - FLT_MANT_DIG), (excepts));     \
+} while (0)
+
+#if LDBL_PREC == 53
+#define        testall_tol     _testall_tol
+#else
+#define        testall_tol(prefix, x, result, tol, excepts) do {               
\
+       _testall_tol(prefix, x, result, tol, excepts);                  \
        test_tol(prefix##l, (x), (result),                              \
                 (tol) * ldexpl(1.0, 1 - LDBL_MANT_DIG), (excepts));    \
 } while (0)
+#endif
+
 #define testall(prefix, x, result, excepts)                            \
        testall_tol(prefix, (x), (result), 0, (excepts))
 
@@ -81,14 +90,23 @@ __FBSDID("$FreeBSD$");
 #define test2(func, y, x, result, excepts)                             \
        test2_tol(func, (y), (x), (result), 0, (excepts))
 
-#define        testall2_tol(prefix, y, x, result, tol, excepts) do {           
\
+#define        _testall2_tol(prefix, y, x, result, tol, excepts) do {          
\
        test2_tol(prefix, (double)(y), (double)(x), (double)(result),   \
                  (tol) * ldexp(1.0, 1 - DBL_MANT_DIG), (excepts));     \
        test2_tol(prefix##f, (float)(y), (float)(x), (float)(result),   \
                  (tol) * ldexpf(1.0, 1 - FLT_MANT_DIG), (excepts));    \
+} while (0)
+
+#if LDBL_PREC == 53
+#define        testall2_tol    _testall2_tol
+#else
+#define        testall2_tol(prefix, y, x, result, tol, excepts) do {           
\
+       _testall2_tol(prefix, y, x, result, tol, excepts);              \
        test2_tol(prefix##l, (y), (x), (result),                        \
                  (tol) * ldexpl(1.0, 1 - LDBL_MANT_DIG), (excepts));   \
 } while (0)
+#endif
+
 #define testall2(prefix, y, x, result, excepts)                                
\
        testall2_tol(prefix, (y), (x), (result), 0, (excepts))
 
@@ -429,6 +447,11 @@ int
 main(int argc, char *argv[])
 {
 
+#if defined(__i386__)
+       printf("1..0 # SKIP fails all assertions on i386\n");
+       return (0);
+#endif
+
        printf("1..7\n");
 
        test_special();
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to