Module Name:    src
Committed By:   pgoyette
Date:           Thu Nov 29 17:10:21 UTC 2012

Modified Files:
        src/tests/ipf: h_common.sh

Log Message:
Add another test option for expected failures, rather than simply
skipping tests


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/ipf/h_common.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/ipf/h_common.sh
diff -u src/tests/ipf/h_common.sh:1.3 src/tests/ipf/h_common.sh:1.4
--- src/tests/ipf/h_common.sh:1.3	Sun Nov  7 17:51:19 2010
+++ src/tests/ipf/h_common.sh	Thu Nov 29 17:10:21 2012
@@ -1,4 +1,4 @@
-# $NetBSD: h_common.sh,v 1.3 2010/11/07 17:51:19 jmmv Exp $
+# $NetBSD: h_common.sh,v 1.4 2012/11/29 17:10:21 pgoyette Exp $
 #
 # Copyright (c) 2008, 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -62,3 +62,16 @@ broken_test_case()
 		${check_function} '${name}' " "${@}" "; \
 	}"
 }
+
+failing_test_case()
+{
+	local name="${1}"; shift
+	local check_function="${1}"; shift
+	local reason="${1}; shift
+
+	atf_test_case "${name}"
+	eval "${name}_body() { \
+		atf_tc_expect_fail "${reason}"; \
+		${check_function} '${name}' " "${@}" "; \
+	}"
+}

Reply via email to