Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/common Adjust atf_check_type() to make it work again.
details: https://anonhg.NetBSD.org/src/rev/5049bb1b2178
branches: trunk
changeset: 760554:5049bb1b2178
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Jan 07 12:16:17 2011 +0000
description:
Adjust atf_check_type() to make it work again.
Do we need tests for the tests? ;)
diffstat:
tests/fs/common/h_fsmacros.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 1682f989d7f8 -r 5049bb1b2178 tests/fs/common/h_fsmacros.h
--- a/tests/fs/common/h_fsmacros.h Fri Jan 07 12:01:11 2011 +0000
+++ b/tests/fs/common/h_fsmacros.h Fri Jan 07 12:16:17 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_fsmacros.h,v 1.30 2011/01/07 12:00:34 pooka Exp $ */
+/* $NetBSD: h_fsmacros.h,v 1.31 2011/01/07 12:16:17 pooka Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -112,7 +112,7 @@
\
ATF_TC_BODY(fs##_##func,tc) \
{ \
- if (!atf_check_fstype(tc, type)) \
+ if (!atf_check_fstype(tc, #fs)) \
atf_tc_skip("filesystem not selected"); \
FSTEST_CONSTRUCTOR(tc,fs,fs##func##tmp); \
func(tc,FSTEST_MNTNAME); \
@@ -124,7 +124,7 @@
\
ATF_TC_CLEANUP(fs##_##func,tc) \
{ \
- if (!atf_check_fstype(tc, type)) \
+ if (!atf_check_fstype(tc, #fs)) \
return; \
if (fs##_fstest_delfs(tc, fs##func##tmp) != 0) \
atf_tc_fail_errno("delfs failed"); \
@@ -142,7 +142,7 @@
\
ATF_TC_BODY(_fs_##_##_func_,tc) \
{ \
- if (!atf_check_fstype(tc, _type_)) \
+ if (!atf_check_fstype(tc, #_fs_)) \
atf_tc_skip("filesystem not selected"); \
FSTEST_CONSTRUCTOR(tc,_fs_,_fs_##_func_##tmp); \
_gen_(tc,FSTEST_MNTNAME); \
@@ -160,7 +160,7 @@
\
ATF_TC_CLEANUP(_fs_##_##_func_,tc) \
{ \
- if (!atf_check_fstype(tc, _type_)) \
+ if (!atf_check_fstype(tc, #_fs_)) \
return; \
if (_fs_##_fstest_delfs(tc, _fs_##_func_##tmp) != 0) \
atf_tc_fail_errno("delfs failed"); \
Home |
Main Index |
Thread Index |
Old Index