diff options
| author | jmmv <jmmv@NetBSD.org> | 2014-02-09 21:26:07 +0000 |
|---|---|---|
| committer | jmmv <jmmv@NetBSD.org> | 2014-02-09 21:26:07 +0000 |
| commit | d3ce2cc2d2b558f12e949269e6e0e6d2a38172c7 (patch) | |
| tree | 7d5332c08a930f8e0d850db978169ac72dfbb5b0 /tests/include | |
| parent | 7e6e02bd8518de34d22bd1292173d6a6f231b931 (diff) | |
Use compiler builtins instead of atf_arch and atf_machine.
The atf_arch and atf_machine configuration variables were removed from
atf-0.19 without me realizing that some tests were querying them directly.
Instead of reintroducing those variables, just rely on compiler builtins
as many other tests already do.
Should fix PR bin/48582.
Diffstat (limited to 'tests/include')
| -rw-r--r-- | tests/include/t_paths.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/include/t_paths.c b/tests/include/t_paths.c index e931a35b6e0..925bb3a8b74 100644 --- a/tests/include/t_paths.c +++ b/tests/include/t_paths.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_paths.c,v 1.12 2012/06/03 21:42:47 joerg Exp $ */ +/* $NetBSD: t_paths.c,v 1.13 2014/02/09 21:26:07 jmmv Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_paths.c,v 1.12 2012/06/03 21:42:47 joerg Exp $"); +__RCSID("$NetBSD: t_paths.c,v 1.13 2014/02/09 21:26:07 jmmv Exp $"); #include <sys/param.h> #include <sys/stat.h> @@ -121,17 +121,15 @@ ATF_TC_HEAD(paths, tc) ATF_TC_BODY(paths, tc) { - const char *arch; struct stat st; uid_t uid; mode_t m; size_t i; int fd; - arch = atf_config_get("atf_arch"); - - if (strcmp(arch, "sparc") == 0) - atf_tc_skip("PR port-sparc/45580"); +#if defined(__sparc__) + atf_tc_skip("PR port-sparc/45580"); +#endif uid = getuid(); |
