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.6.1 retrieving revision 1.3.6.2 diff -u -p -r1.3.6.1 -r1.3.6.2 --- src/tests/ipf/h_common.sh 2013/01/16 05:33:57 1.3.6.1 +++ src/tests/ipf/h_common.sh 2014/05/22 11:42:19 1.3.6.2 @@ -1,4 +1,4 @@ -# $NetBSD: h_common.sh,v 1.3.6.1 2013/01/16 05:33:57 yamt Exp $ +# $NetBSD: h_common.sh,v 1.3.6.2 2014/05/22 11:42:19 yamt Exp $ # # Copyright (c) 2008, 2010 The NetBSD Foundation, Inc. # All rights reserved. @@ -75,3 +75,26 @@ failing_test_case() ${check_function} '${name}' " "${@}" "; \ }" } + +failing_test_case_be() +{ + # this test fails on some architectures - not fully analyzed, assume + # an endianess bug + local name="${1}"; shift + local check_function="${1}"; shift + local reason="${1}"; shift + + atf_test_case "${name}" + + if [ `sysctl -n hw.byteorder` = 4321 ]; then + eval "${name}_body() { \ + atf_expect_fail '${reason}'; \ + ${check_function} '${name}' " "${@}" "; \ + }" + else + eval "${name}_body() { \ + ${check_function} '${name}' " "${@}" "; \ + }" + fi +} +