Module Name: src
Committed By: martin
Date: Mon May 28 09:51:34 UTC 2012
Modified Files:
src/tests/lib/libexecinfo: t_backtrace.c
Log Message:
Not a good idea to continue testing if basic assertions fail - only will
cause core dumps later.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libexecinfo/t_backtrace.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/libexecinfo/t_backtrace.c
diff -u src/tests/lib/libexecinfo/t_backtrace.c:1.1 src/tests/lib/libexecinfo/t_backtrace.c:1.2
--- src/tests/lib/libexecinfo/t_backtrace.c:1.1 Sun May 27 18:47:18 2012
+++ src/tests/lib/libexecinfo/t_backtrace.c Mon May 28 09:51:34 2012
@@ -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 @@ myfunc3(size_t ncalls)
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");