Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/tests/ipf/h_common.sh,v rcsdiff: /ftp/cvs/cvsroot/src/tests/ipf/h_common.sh,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.3 retrieving revision 1.3.12.1 diff -u -p -r1.3 -r1.3.12.1 --- src/tests/ipf/h_common.sh 2010/11/07 17:51:19 1.3 +++ src/tests/ipf/h_common.sh 2013/02/25 00:30:21 1.3.12.1 @@ -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.3.12.1 2013/02/25 00:30:21 tls 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_expect_fail '${reason}'; \ + ${check_function} '${name}' " "${@}" "; \ + }" +}