Module Name: src
Committed By: jmmv
Date: Sun Feb 20 20:57:46 UTC 2011
Modified Files:
src/tests/lib/libc/gen: t_ldexp.c
src/tests/lib/libc/ieeefp: t_nan_inf.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/gen/t_ldexp.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/ieeefp/t_nan_inf.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/libc/gen/t_ldexp.c
diff -u src/tests/lib/libc/gen/t_ldexp.c:1.3 src/tests/lib/libc/gen/t_ldexp.c:1.4
--- src/tests/lib/libc/gen/t_ldexp.c:1.3 Mon Jan 3 20:51:26 2011
+++ src/tests/lib/libc/gen/t_ldexp.c Sun Feb 20 20:57:46 2011
@@ -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); \
}
Index: src/tests/lib/libc/ieeefp/t_nan_inf.c
diff -u src/tests/lib/libc/ieeefp/t_nan_inf.c:1.1 src/tests/lib/libc/ieeefp/t_nan_inf.c:1.2
--- src/tests/lib/libc/ieeefp/t_nan_inf.c:1.1 Sun Jan 2 03:51:21 2011
+++ src/tests/lib/libc/ieeefp/t_nan_inf.c Sun Feb 20 20:57:46 2011
@@ -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 {