summaryrefslogtreecommitdiff
path: root/tests/split
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2011-08-04 20:52:31 +0200
committerJim Meyering <meyering@redhat.com>2011-08-08 10:11:48 +0200
commit554caaf6ffc721fe83debe0eb5e555136b01f0bb (patch)
tree3434c8a4fca2cdac2ec5fca8bd808bd17a6f4d30 /tests/split
parent8e2767a3f0c279d355f067e53be2c63173959eb1 (diff)
downloadcoreutils-554caaf6ffc721fe83debe0eb5e555136b01f0bb.tar.xz
tests: complete the renaming framework_failure -> framework_failure_
These changes were mostly mechanical, made by running the following command: git grep -lw framework_failure | grep -v ChangeLog \ | xargs perl -pi -e 's/\b(framework_failure)\b/${1}_/' and then editing init.cfg and `tests/cp/cp-a-selinux' by hand. * tests/init.cfg (framework_failure): Remove, `framework_failure_' from init.sh should be used instead in the tests. Remove now-obsolete "FIXME" comment. (is_local_dir_, require_strace_, require_membership_in_two_groups_, require_sparse_support_, skip_if_mcstransd_is_running_, mkfifo_or_skip_) Use `framework_failure_', not `framework_failure'. * Many test scripts: Likewise.
Diffstat (limited to 'tests/split')
-rwxr-xr-xtests/split/b-chunk2
-rwxr-xr-xtests/split/fail2
-rwxr-xr-xtests/split/l-chunk6
-rwxr-xr-xtests/split/lines2
-rwxr-xr-xtests/split/r-chunk2
-rwxr-xr-xtests/split/suffix-length6
6 files changed, 10 insertions, 10 deletions
diff --git a/tests/split/b-chunk b/tests/split/b-chunk
index 48c57e077..3191620aa 100755
--- a/tests/split/b-chunk
+++ b/tests/split/b-chunk
@@ -29,7 +29,7 @@ rm x??
split -e -n 10 /dev/null || fail=1
stat x?? 2>/dev/null && fail=1
-printf '1\n2\n3\n4\n5\n' > in || framework_failure
+printf '1\n2\n3\n4\n5\n' > in || framework_failure_
split -n 3 in > out || fail=1
split -n 1/3 in > b1 || fail=1
diff --git a/tests/split/fail b/tests/split/fail
index 1fe368cf2..039f457a3 100755
--- a/tests/split/fail
+++ b/tests/split/fail
@@ -20,7 +20,7 @@
print_ver_ split
getlimits_
-touch in || framework_failure
+touch in || framework_failure_
split -a 0 in 2> /dev/null || fail=1
diff --git a/tests/split/l-chunk b/tests/split/l-chunk
index 8b4d157a1..7bf698989 100755
--- a/tests/split/l-chunk
+++ b/tests/split/l-chunk
@@ -48,7 +48,7 @@ stat x?? 2>/dev/null && fail=1
lines=\
12345~1~12345~1~12345~1~12345~1~12345~~~12345~1~12345~1~12345~1~12345~1~12345~1~
-printf "%s" "$lines" | tr '~' '\n' > in || framework_failure
+printf "%s" "$lines" | tr '~' '\n' > in || framework_failure_
echo 'split: 16: invalid chunk number' > exp
split -n l/16/15 in 2>err && fail=1
@@ -60,9 +60,9 @@ printf '%s' "\
06 08 08 02 06 08 08 02 06 08 08 10
06 08 02 06 08 00 08 02 06 08 02 06 08 00 10
06 00 08 00 02 06 00 02 06 00 08 00 01 07 00 02 06 00 08 00 02 16
-" > exp || framework_failure
+" > exp || framework_failure_
-sed 's/00 *//g' exp > exp.elide_empty || framework_failure
+sed 's/00 *//g' exp > exp.elide_empty || framework_failure_
DEBUGGING=
test "$DEBUGGING" && test "$VERBOSE" && set +x
diff --git a/tests/split/lines b/tests/split/lines
index 932c178e5..1612c2e23 100755
--- a/tests/split/lines
+++ b/tests/split/lines
@@ -19,7 +19,7 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../src
print_ver_ split
-printf '1\n2\n3\n4\n5\n' > in || framework_failure
+printf '1\n2\n3\n4\n5\n' > in || framework_failure_
split --lines=2 in > out || fail=1
cat <<\EOF > exp-1
diff --git a/tests/split/r-chunk b/tests/split/r-chunk
index d3165fb79..ea2ac9f20 100755
--- a/tests/split/r-chunk
+++ b/tests/split/r-chunk
@@ -31,7 +31,7 @@ rm x??
split -e -n r/10 /dev/null || fail=1
stat x?? 2>/dev/null && fail=1
-printf '1\n2\n3\n4\n5\n' > in || framework_failure
+printf '1\n2\n3\n4\n5\n' > in || framework_failure_
split -n r/3 in > out || fail=1
test -s out && fail=1
diff --git a/tests/split/suffix-length b/tests/split/suffix-length
index 7577aaa50..efb0d8166 100755
--- a/tests/split/suffix-length
+++ b/tests/split/suffix-length
@@ -22,7 +22,7 @@ print_ver_ split
a_z='a b c d e f g h i j k l m n o p q r s t u v w x y z'
# Generate a 27-byte file
-printf %s $a_z 0 |tr -d ' ' > in || framework_failure
+printf %s $a_z 0 |tr -d ' ' > in || framework_failure_
files=
for i in $a_z; do
@@ -32,10 +32,10 @@ files="${files}xba"
for f in $files; do
printf 'creating file `%s'\''\n' $f
-done > exp || framework_failure
+done > exp || framework_failure_
echo split: output file suffixes exhausted \
- > exp-too-short || framework_failure
+ > exp-too-short || framework_failure_
# This should fail.