Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libexecinfo Not a good idea to continue testing if...



details:   https://anonhg.NetBSD.org/src/rev/d2688a3aa115
branches:  trunk
changeset: 779443:d2688a3aa115
user:      martin <martin%NetBSD.org@localhost>
date:      Mon May 28 09:51:34 2012 +0000

description:
Not a good idea to continue testing if basic assertions fail - only will
cause core dumps later.

diffstat:

 tests/lib/libexecinfo/t_backtrace.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r dbb64536de9c -r d2688a3aa115 tests/lib/libexecinfo/t_backtrace.c
--- a/tests/lib/libexecinfo/t_backtrace.c       Mon May 28 08:51:44 2012 +0000
+++ b/tests/lib/libexecinfo/t_backtrace.c       Mon May 28 09:51:34 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_backtrace.c,v 1.1 2012/05/27 18:47:18 christos Exp $ */
+/*     $NetBSD: t_backtrace.c,v 1.2 2012/05/28 09:51:34 martin Exp $   */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_backtrace.c,v 1.1 2012/05/27 18:47:18 christos Exp $");
+__RCSID("$NetBSD: t_backtrace.c,v 1.2 2012/05/28 09:51:34 martin Exp $");
 
 #include <atf-c.h>
 #include <string.h>
@@ -50,7 +50,7 @@
        char **strings;
 
        nptrs = backtrace(buffer, __arraycount(buffer));
-       ATF_CHECK_EQ(nptrs, ncalls + 8);
+       ATF_REQUIRE_EQ(nptrs, ncalls + 8);
 
        strings = backtrace_symbols_fmt(buffer, nptrs, "%n");
 



Home | Main Index | Thread Index | Old Index