Tue Apr 26 20:20:16 2011 UTC ()
When failing, point to PR lib/44057 and the discussion therein about the
relevant compiler bug.


(martin)
diff -r1.2 -r1.3 src/tests/lib/libm/t_tanh.c

cvs diff -r1.2 -r1.3 src/tests/lib/libm/t_tanh.c (expand / switch to context diff)
--- src/tests/lib/libm/t_tanh.c 2011/04/08 06:37:50 1.2
+++ src/tests/lib/libm/t_tanh.c 2011/04/26 20:20:16 1.3
@@ -1,4 +1,4 @@
-/* $NetBSD: t_tanh.c,v 1.2 2011/04/08 06:37:50 jruoho Exp $ */
+/* $NetBSD: t_tanh.c,v 1.3 2011/04/26 20:20:16 martin Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_tanh.c,v 1.2 2011/04/08 06:37:50 jruoho Exp $");
+__RCSID("$NetBSD: t_tanh.c,v 1.3 2011/04/26 20:20:16 martin Exp $");
 
 #include <math.h>
 
@@ -56,8 +56,10 @@
 	d = tanh(-0.0);
 	f = tanhf(-0.0);
 
-	ATF_REQUIRE(signbit(d) != 0);
-	ATF_REQUIRE(signbit(f) != 0);
+	ATF_REQUIRE_MSG(signbit(d) != 0,
+	    "compiler bug, waiting for newer gcc import, see PR lib/44057");
+	ATF_REQUIRE_MSG(signbit(f) != 0,
+	    "compiler bug, waiting for newer gcc import, see PR lib/44057");
 #endif
 }