Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libexecinfo Skip test on non-amd64 machines for no...



details:   https://anonhg.NetBSD.org/src/rev/963a190e5657
branches:  trunk
changeset: 779466:963a190e5657
user:      martin <martin%NetBSD.org@localhost>
date:      Wed May 30 06:01:22 2012 +0000

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

diffstat:

 tests/lib/libexecinfo/t_backtrace.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 428415d08850 -r 963a190e5657 tests/lib/libexecinfo/t_backtrace.c
--- a/tests/lib/libexecinfo/t_backtrace.c       Wed May 30 05:20:36 2012 +0000
+++ b/tests/lib/libexecinfo/t_backtrace.c       Wed May 30 06:01:22 2012 +0000
@@ -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_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);
 }
 



Home | Main Index | Thread Index | Old Index