Module Name:    src
Committed By:   martin
Date:           Tue Apr 26 20:20:16 UTC 2011

Modified Files:
        src/tests/lib/libm: t_tanh.c

Log Message:
When failing, point to PR lib/44057 and the discussion therein about the
relevant compiler bug.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_tanh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libm/t_tanh.c
diff -u src/tests/lib/libm/t_tanh.c:1.2 src/tests/lib/libm/t_tanh.c:1.3
--- src/tests/lib/libm/t_tanh.c:1.2	Fri Apr  8 06:37:50 2011
+++ src/tests/lib/libm/t_tanh.c	Tue Apr 26 20:20:16 2011
@@ -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
 }
 

Reply via email to