Module Name: src
Committed By: martin
Date: Wed May 30 06:01:22 UTC 2012
Modified Files:
src/tests/lib/libexecinfo: t_backtrace.c
Log Message:
Skip test on non-amd64 machines for now, pointing to PR 46490.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 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.2 src/tests/lib/libexecinfo/t_backtrace.c:1.3
--- src/tests/lib/libexecinfo/t_backtrace.c:1.2 Mon May 28 09:51:34 2012
+++ src/tests/lib/libexecinfo/t_backtrace.c Wed May 30 06:01:22 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_backtrace.c,v 1.2 2012/05/28 09:51:34 martin Exp $ */
+/* $NetBSD: t_backtrace.c,v 1.3 2012/05/30 06:01:22 martin Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -29,9 +29,10 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_backtrace.c,v 1.2 2012/05/28 09:51:34 martin Exp $");
+__RCSID("$NetBSD: t_backtrace.c,v 1.3 2012/05/30 06:01:22 martin Exp $");
#include <atf-c.h>
+#include <atf-c/config.h>
#include <string.h>
#include <stdlib.h>
#include <execinfo.h>
@@ -96,6 +97,12 @@ ATF_TC_HEAD(backtrace_fmt_basic, tc)
ATF_TC_BODY(backtrace_fmt_basic, tc)
{
+ const char *arch = atf_config_get("atf_machine");
+
+ if (strcmp(arch, "amd64") != 0)
+ atf_tc_skip("PR toolchain/46490: libexecinfo only"
+ " works on amd64 currently");
+
myfunc(12);
}