summaryrefslogtreecommitdiff
path: root/tests/word-multi-file
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-03-25 10:30:17 +0100
committerJim Meyering <meyering@redhat.com>2010-03-25 10:30:17 +0100
commit281bfe635874936073b3305c462626fa1b448fd6 (patch)
treeb773a7df8d382bc83aad12c078b4f4f10ac65b5c /tests/word-multi-file
parenta2322154752830e052fc8b0ff4dbf73c53ded841 (diff)
downloadgrep-281bfe635874936073b3305c462626fa1b448fd6.tar.gz
tests: provide framework_failure_ function
The shell function "framework_failure" was called in the unusual event that some fundamental test set-up operation would fail. However it was not defined. Define it, but with a trailing underscore to impinge less on the test writer's name space. Adjust all uses. * tests/init.sh (framework_failure_): New function. * tests/case-fold-backref: s/framework_failure/framework_failure_/ * tests/case-fold-char-class: Likewise. * tests/case-fold-char-range: Likewise. * tests/case-fold-char-type: Likewise. * tests/char-class-multibyte: Likewise. * tests/dfaexec-multibyte: Likewise. * tests/max-count-vs-context: Likewise. * tests/word-multi-file: Likewise.
Diffstat (limited to 'tests/word-multi-file')
-rw-r--r--tests/word-multi-file8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/word-multi-file b/tests/word-multi-file
index 0bafc097..22bcdef4 100644
--- a/tests/word-multi-file
+++ b/tests/word-multi-file
@@ -4,20 +4,20 @@
: ${srcdir=.}
. "$srcdir/init.sh"; path_prepend_ ../src
-mkdir a || framework_failure
+mkdir a || framework_failure_
( cd a \
&& echo aa bb cc > 1 \
&& echo bb dd ff > 2 \
&& echo ff gg hh > 3 \
&& echo bb xx zz > 4 \
-) || framework_failure
+) || framework_failure_
-cat << \EOF > exp1 || framework_failure
+cat << \EOF > exp1 || framework_failure_
a/1:aa bb cc
a/2:bb dd ff
a/4:bb xx zz
EOF
-sed s/..// exp1 > exp2 || framework_failure
+sed s/..// exp1 > exp2 || framework_failure_
fail=0
grep -rw bb a > out || fail=1