Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc Adjust tests now that the values of atf_arch ...
details: https://anonhg.NetBSD.org/src/rev/132734ea50d3
branches: trunk
changeset: 762427:132734ea50d3
user: jmmv <jmmv%NetBSD.org@localhost>
date: Sun Feb 20 20:57:46 2011 +0000
description:
Adjust tests now that the values of atf_arch and atf_machine have been
reversed to carry their real intended meanings.
This is part of PR bin/44305.
diffstat:
tests/lib/libc/gen/t_ldexp.c | 10 +++++-----
tests/lib/libc/ieeefp/t_nan_inf.c | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (43 lines):
diff -r 44f11fbd6d3c -r 132734ea50d3 tests/lib/libc/gen/t_ldexp.c
--- a/tests/lib/libc/gen/t_ldexp.c Sun Feb 20 20:56:34 2011 +0000
+++ b/tests/lib/libc/gen/t_ldexp.c Sun Feb 20 20:57:46 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ldexp.c,v 1.3 2011/01/03 20:51:26 pgoyette Exp $ */
+/* $NetBSD: t_ldexp.c,v 1.4 2011/02/20 20:57:46 jmmv Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -182,11 +182,11 @@
} \
ATF_TC_BODY(name, tc) \
{ \
- const char *arch; \
+ const char *machine; \
\
- arch = atf_config_get("atf_arch"); \
- if (strcmp("vax", arch) == 0) \
- atf_tc_skip("Test not valid for %s", arch); \
+ machine = atf_config_get("atf_machine"); \
+ if (strcmp("vax", machine) == 0) \
+ atf_tc_skip("Test not valid for %s", machine); \
run_test(name); \
}
diff -r 44f11fbd6d3c -r 132734ea50d3 tests/lib/libc/ieeefp/t_nan_inf.c
--- a/tests/lib/libc/ieeefp/t_nan_inf.c Sun Feb 20 20:56:34 2011 +0000
+++ b/tests/lib/libc/ieeefp/t_nan_inf.c Sun Feb 20 20:57:46 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_nan_inf.c,v 1.1 2011/01/02 03:51:21 pgoyette Exp $ */
+/* $NetBSD: t_nan_inf.c,v 1.2 2011/02/20 20:57:46 jmmv Exp $ */
/*
* This file is in the Public Domain.
@@ -54,7 +54,7 @@
{
const char *arch;
- arch = atf_config_get("atf_machine");
+ arch = atf_config_get("atf_arch");
if (strcmp("vax", arch) == 0 || strcmp("m68000", arch) == 0)
atf_tc_skip("Test not applicable on %s", arch);
else {
Home |
Main Index |
Thread Index |
Old Index