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 call exit() after atf_tc_fail().



details:   https://anonhg.NetBSD.org/src/rev/d99ca2eeb7ae
branches:  trunk
changeset: 765924:d99ca2eeb7ae
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Jun 10 15:21:25 2011 +0000

description:
Do not call exit() after atf_tc_fail().

diffstat:

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

diffs (22 lines):

diff -r a876109f347e -r d99ca2eeb7ae tests/lib/libc/t_convfp.c
--- a/tests/lib/libc/t_convfp.c Fri Jun 10 14:59:35 2011 +0000
+++ b/tests/lib/libc/t_convfp.c Fri Jun 10 15:21:25 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_convfp.c,v 1.1 2010/12/31 04:08:33 pgoyette Exp $    */
+/*     $NetBSD: t_convfp.c,v 1.2 2011/06/10 15:21:25 njoly Exp $       */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -85,11 +85,9 @@
                    "sizeof(long double) = %d\n", 
                    sizeof(ul), sizeof(d), sizeof(dt));
 
-       if (ul != ULONG_TESTVALUE) {
+       if (ul != ULONG_TESTVALUE)
                atf_tc_fail("unsigned long %lu (0x%lx) != %lu (0x%lx)\n",
                    ul, ul, ULONG_TESTVALUE, ULONG_TESTVALUE);
-               exit(1);
-       }
 }
 
 ATF_TC(test2);



Home | Main Index | Thread Index | Old Index