Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc Do not print sizeof values in skip message.



details:   https://anonhg.NetBSD.org/src/rev/1f3b06d4e285
branches:  trunk
changeset: 765929:1f3b06d4e285
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Jun 10 17:10:43 2011 +0000

description:
Do not print sizeof values in skip message.

diffstat:

 tests/lib/libc/t_convfp.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r c41e1c12441a -r 1f3b06d4e285 tests/lib/libc/t_convfp.c
--- a/tests/lib/libc/t_convfp.c Fri Jun 10 16:38:17 2011 +0000
+++ b/tests/lib/libc/t_convfp.c Fri Jun 10 17:10:43 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_convfp.c,v 1.4 2011/06/10 15:52:44 njoly Exp $       */
+/*     $NetBSD: t_convfp.c,v 1.5 2011/06/10 17:10:43 njoly Exp $       */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -75,12 +75,13 @@
                dt = ULONG_TESTVALUE;
                ul = (unsigned long)dt;
                printf("testing long double vs. long\n");
-       } else
+       } else {
+               printf("sizeof(long) = %d, sizeof(double) = %d, "
+                   "sizeof(long double) = %d\n", 
+                   sizeof(ul), sizeof(d), sizeof(dt));
                atf_tc_skip("no suitable {long} double type found, skipping "
-                   "\"unsigned long\" test: "
-                   "sizeof(long) = %d, sizeof(double) = %d, "
-                   "sizeof(long double) = %d", 
-                   sizeof(ul), sizeof(d), sizeof(dt));
+                   "\"unsigned long\" test");
+       }
 
        if (ul != ULONG_TESTVALUE)
                atf_tc_fail("unsigned long %lu (0x%lx) != %lu (0x%lx)",



Home | Main Index | Thread Index | Old Index