Skip test on non-amd64 machines for now, pointing to PR 46490.

This commit is contained in:
martin 2012-05-30 06:01:22 +00:00
parent bc90984fca
commit f124f6239d
1 changed files with 9 additions and 2 deletions

View File

@ -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);
}