Module Name:    src
Committed By:   mrg
Date:           Mon Nov 22 08:47:58 UTC 2010

Modified Files:
        src/tests/lib/libc/stdio: t_format.c

Log Message:
vax doesn't have ieee fp, so, don't try to test ieee fp on vax.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/stdio/t_format.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/libc/stdio/t_format.c
diff -u src/tests/lib/libc/stdio/t_format.c:1.1 src/tests/lib/libc/stdio/t_format.c:1.2
--- src/tests/lib/libc/stdio/t_format.c:1.1	Fri Nov 19 18:18:53 2010
+++ src/tests/lib/libc/stdio/t_format.c	Mon Nov 22 08:47:58 2010
@@ -46,11 +46,13 @@
 	ATF_CHECK(sprintf(str, "%010f", 0.0) == 10);
 	ATF_REQUIRE_STREQ(str, "000.000000");
 
+#ifndef __vax__
 	/* PR/44113: printf(3) should ignore zero padding for nan/inf */
 	ATF_CHECK(sprintf(str, "%010f", NAN) == 10);
 	ATF_REQUIRE_STREQ(str, "       nan");
 	ATF_CHECK(sprintf(str, "%010f", INFINITY) == 10);
 	ATF_REQUIRE_STREQ(str, "       inf");
+#endif
 }
 
 ATF_TP_ADD_TCS(tp)

Reply via email to