]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: complete the renaming framework_failure -> framework_failure_
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 4 Aug 2011 18:52:31 +0000 (20:52 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 8 Aug 2011 08:11:48 +0000 (10:11 +0200)
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.

250 files changed:
tests/chgrp/default-no-deref
tests/chgrp/no-x
tests/chgrp/posix-H
tests/chmod/c-option
tests/chmod/equal-x
tests/chmod/equals
tests/chmod/inaccessible
tests/chmod/no-x
tests/chmod/setgid
tests/chmod/thru-dangling
tests/chmod/usage
tests/chown/basic
tests/chown/deref
tests/chown/separator
tests/cp/abuse
tests/cp/acl
tests/cp/backup-dir
tests/cp/backup-is-src
tests/cp/capability
tests/cp/cp-HL
tests/cp/cp-a-selinux
tests/cp/cp-deref
tests/cp/cp-i
tests/cp/cp-mv-enotsup-xattr
tests/cp/cp-parents
tests/cp/deref-slink
tests/cp/dir-rm-dest
tests/cp/dir-slash
tests/cp/dir-vs-file
tests/cp/fail-perm
tests/cp/fiemap-empty
tests/cp/into-self
tests/cp/link
tests/cp/link-heap
tests/cp/link-no-deref
tests/cp/link-preserve
tests/cp/link-symlink
tests/cp/parent-perm
tests/cp/parent-perm-race
tests/cp/preserve-2
tests/cp/preserve-slink-time
tests/cp/proc-zero-len
tests/cp/r-vs-symlink
tests/cp/reflink-auto
tests/cp/reflink-perm
tests/cp/slink-2-slink
tests/cp/sparse
tests/cp/sparse-fiemap
tests/cp/special-bits
tests/cp/src-base-dot
tests/cp/symlink-slash
tests/cp/thru-dangling
tests/dd/direct
tests/dd/misc
tests/dd/nocache
tests/dd/reblock
tests/dd/skip-seek-past-dev
tests/dd/skip-seek-past-file
tests/dd/unblock-sync
tests/df/total-verify
tests/du/basic
tests/du/deref
tests/du/deref-args
tests/du/exclude
tests/du/fd-leak
tests/du/inacc-dest
tests/du/inacc-dir
tests/du/inaccessible-cwd
tests/du/long-from-unreadable
tests/du/long-sloop
tests/du/move-dir-while-traversing
tests/du/no-deref
tests/du/no-x
tests/du/one-file-system
tests/du/restore-wd
tests/du/trailing-slash
tests/du/two-args
tests/init.cfg
tests/install/basic-1
tests/install/install-C
tests/install/install-C-root
tests/install/install-C-selinux
tests/install/strip-program
tests/ln/backup-1
tests/ln/hard-backup
tests/ln/hard-to-sym
tests/ln/misc
tests/ln/sf-1
tests/ln/slash-decorated-nonexistent-dest
tests/ln/target-1
tests/ls/abmon-align
tests/ls/capability
tests/ls/color-clear-to-eol
tests/ls/color-dtype-dir
tests/ls/color-norm
tests/ls/dangle
tests/ls/dired
tests/ls/follow-slink
tests/ls/infloop
tests/ls/inode
tests/ls/m-option
tests/ls/multihardlink
tests/ls/nameless-uid
tests/ls/no-arg
tests/ls/recursive
tests/ls/rt-1
tests/ls/stat-dtype
tests/ls/stat-failed
tests/ls/stat-free-symlinks
tests/ls/symlink-slash
tests/ls/x-option
tests/misc/chcon
tests/misc/env
tests/misc/env-null
tests/misc/fmt-long-line
tests/misc/head-c
tests/misc/head-pos
tests/misc/ls-time
tests/misc/nice
tests/misc/od-N
tests/misc/od-float
tests/misc/od-multiple-t
tests/misc/od-x8
tests/misc/pathchk1
tests/misc/printenv
tests/misc/ptx-overrun
tests/misc/pwd-option
tests/misc/readlink-fp-loop
tests/misc/runcon-no-reorder
tests/misc/selinux
tests/misc/shred-passes
tests/misc/shred-remove
tests/misc/shuf
tests/misc/sort-benchmark-random
tests/misc/sort-compress
tests/misc/sort-compress-hang
tests/misc/sort-compress-proc
tests/misc/sort-continue
tests/misc/sort-merge-fdlimit
tests/misc/sort-rand
tests/misc/stat-hyphen
tests/misc/stat-slash
tests/misc/tee
tests/misc/truncate-owned-by-other
tests/misc/wc-files0
tests/misc/xattr
tests/mkdir/p-3
tests/mkdir/p-thru-slink
tests/mkdir/parents
tests/mv/acl
tests/mv/atomic
tests/mv/atomic2
tests/mv/backup-dir
tests/mv/backup-is-src
tests/mv/childproof
tests/mv/diag
tests/mv/dir-file
tests/mv/dir2dir
tests/mv/force
tests/mv/hard-2
tests/mv/hard-3
tests/mv/hard-4
tests/mv/hard-link-1
tests/mv/hard-verbose
tests/mv/i-2
tests/mv/i-3
tests/mv/i-4
tests/mv/i-5
tests/mv/i-link-no
tests/mv/into-self
tests/mv/into-self-2
tests/mv/into-self-3
tests/mv/into-self-4
tests/mv/leak-fd
tests/mv/mv-n
tests/mv/mv-special-1
tests/mv/no-target-dir
tests/mv/part-fail
tests/mv/part-hardlink
tests/mv/part-rename
tests/mv/perm-1
tests/mv/sticky-to-xpart
tests/mv/to-symlink
tests/mv/trailing-slash
tests/mv/update
tests/readlink/can-e
tests/readlink/can-f
tests/readlink/can-m
tests/readlink/rl-1
tests/rm/deep-2
tests/rm/dir-no-w
tests/rm/dir-nonrecur
tests/rm/dot-rel
tests/rm/empty-inacc
tests/rm/ext3-perf
tests/rm/f-1
tests/rm/fail-2eperm
tests/rm/fail-eacces
tests/rm/hash
tests/rm/i-1
tests/rm/i-never
tests/rm/i-no-r
tests/rm/ignorable
tests/rm/inaccessible
tests/rm/interactive-always
tests/rm/interactive-once
tests/rm/ir-1
tests/rm/no-give-up
tests/rm/one-file-system
tests/rm/r-1
tests/rm/r-2
tests/rm/r-3
tests/rm/r-4
tests/rm/readdir-bug
tests/rm/rm1
tests/rm/rm2
tests/rm/rm3
tests/rm/rm4
tests/rm/rm5
tests/rm/unread2
tests/rm/unread3
tests/rm/v-slash
tests/rmdir/fail-perm
tests/rmdir/ignore
tests/rmdir/t-slash
tests/split/b-chunk
tests/split/fail
tests/split/l-chunk
tests/split/lines
tests/split/r-chunk
tests/split/suffix-length
tests/tail-2/F-vs-rename
tests/tail-2/big-4gb
tests/tail-2/follow-stdin
tests/tail-2/inotify-hash-abuse
tests/tail-2/inotify-hash-abuse2
tests/tail-2/inotify-race
tests/tail-2/pid
tests/tail-2/pipe-f2
tests/tail-2/start-middle
tests/tail-2/tail-n0f
tests/tail-2/wait
tests/touch/60-seconds
tests/touch/empty-file
tests/touch/no-dereference
tests/touch/no-rights
tests/touch/now-owned-by-other
tests/touch/read-only
tests/touch/relative
tests/touch/trailing-slash

index 6f864f54d3180878ee37a06e01ee4cf64619d787..3e31a2a66645c11e808b19b7d62a5c51c86c00ad 100755 (executable)
@@ -23,7 +23,7 @@ require_membership_in_two_groups_
 set _ $groups; shift
 g2=$2
 
-mkdir d && touch f && ln -s ../f d/s || framework_failure
+mkdir d && touch f && ln -s ../f d/s || framework_failure_
 
 
 g_init=`stat --printf=%g f`
index 12235de63ab8c275afd65e1e11346629c2e20a43..2555c4532a056396cb134a72030fb63ea02d1323 100755 (executable)
@@ -26,8 +26,8 @@ set _ $groups; shift
 g1=$1
 g2=$2
 
-mkdir -p d/no-x/y || framework_failure
-chmod u=rw d/no-x || framework_failure
+mkdir -p d/no-x/y || framework_failure_
+chmod u=rw d/no-x || framework_failure_
 
 
 # This must exit nonzero.
index 2ae2ff3c6056ea7ca142b5d7b69b03de0dd5bdda..a0e6ff0952388b3f1b222c4c8ad5d4c537047a12 100755 (executable)
@@ -24,11 +24,11 @@ set _ $groups; shift
 g1=$1
 g2=$2
 
-mkdir 1 2 3 || framework_failure
-touch 1/1F 2/2F 3/3F || framework_failure
-ln -s 1 1s || framework_failure
-ln -s ../3 2/2s || framework_failure
-chgrp -R $g1 1 2 3 || framework_failure
+mkdir 1 2 3 || framework_failure_
+touch 1/1F 2/2F 3/3F || framework_failure_
+ln -s 1 1s || framework_failure_
+ln -s ../3 2/2s || framework_failure_
+chgrp -R $g1 1 2 3 || framework_failure_
 
 
 chgrp --preserve-root -H -R $g2 1s 2 || fail=1
index d80038c3d61ac0bbdf75c3022b511d729352c149..d5002a27ff08c48fdf5ed652bb87bf2bce3098ec 100755 (executable)
@@ -21,8 +21,8 @@ print_ver_ chmod
 
 umask 0
 file=f
-touch $file || framework_failure
-chmod 444 $file || framework_failure
+touch $file || framework_failure_
+chmod 444 $file || framework_failure_
 
 skip_if_setgid_
 
index fc4a8f5ef10e34aeac91431ad90a8d1fbd3bbb35..3505696ae6d20056f8cde89caae217a3bba4115b 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ chmod
 
 file=f
-touch $file || framework_failure
+touch $file || framework_failure_
 
 umask 005
 for mode in =x =xX =Xx =x,=X =X,=x; do
index 39d2d62a0edc99336ed91df297189f03d59edf55..249412cf665c848e05f2e4faeb87d6b334cb4e3f 100755 (executable)
@@ -21,7 +21,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ chmod
 
-touch f || framework_failure
+touch f || framework_failure_
 
 
 expected_u=-rwx------
index 90126a86c6cd9605aa68f23a679900d2e7fe97cd..7c051801702dbc3f3d297058c3ec0d920569a984 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ chmod
 
-mkdir -p d/e || framework_failure
-chmod 0 d/e d || framework_failure
+mkdir -p d/e || framework_failure_
+chmod 0 d/e d || framework_failure_
 
 
 chmod u+rwx d d/e || fail=1
index 0fb70f967378ffb493acf0cefa5f0c492f6947a0..f45c4466e774d8879206483b2881aad56dbe56ff 100755 (executable)
@@ -21,8 +21,8 @@
 print_ver_ chmod
 skip_if_root_
 
-mkdir -p d/no-x/y a/b || framework_failure
-chmod u=rw d/no-x || framework_failure
+mkdir -p d/no-x/y a/b || framework_failure_
+chmod u=rw d/no-x || framework_failure_
 
 
 # This must exit nonzero.
index 364d25d5ff3f6956804c906f74a6d72c315792a5..23278dec25e76722feba3c60711544544c0ac2a9 100755 (executable)
@@ -21,7 +21,7 @@
 print_ver_ chmod
 
 umask 0
-mkdir d || framework_failure
+mkdir d || framework_failure_
 
 chmod g+s d 2> /dev/null && env -- test -g d ||
   {
@@ -33,7 +33,7 @@ chmod g+s d 2> /dev/null && env -- test -g d ||
     id_g=`id -g` &&
     test -n "$id_g" &&
     chgrp "$id_g" d &&
-    chmod g+s d || framework_failure
+    chmod g+s d || framework_failure_
   }
 
 # "chmod g+s d" does nothing on some NFS file systems.
index e967eb9293a383ed85ba3750782168d07d3b5fa4..38187d0023e1c9de7a0ba898dd2623254b101c88 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ chmod
 
-ln -s non-existent dangle || framework_failure
+ln -s non-existent dangle || framework_failure_
 
 
 # This operation cannot succeed since the symbolic link dangles.
index 0566db49df54e5a6257002da398fb266e04cebeb..b840c1109f64d6623f6b6da97f7f82ce7dd98b7f 100755 (executable)
@@ -66,17 +66,17 @@ for case in $cases; do
 
   case $files in
   '')
-    touch -- $all_files || framework_failure
+    touch -- $all_files || framework_failure_
     chmod $args 2>/dev/null && fail=1
     ;;
   ?*)
-    touch -- $files || framework_failure
+    touch -- $files || framework_failure_
     chmod $args || fail=1
     for file in $files; do
       # Test for misparsing args by creating all $files but $file.
       # chmod has a bug if it succeeds even though $file is absent.
       rm -f -- $all_files && touch -- $files && rm -- $file \
-          || framework_failure
+          || framework_failure_
       chmod $args 2>/dev/null && fail=1
     done
     ;;
index 5626029aec90b848da25681aa8395657a774c760..102f17c79b40f340245eed4f2340b19e702f1028 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ chgrp
 require_root_
 
-touch f || framework_failure
+touch f || framework_failure_
 
 chown -R --preserve-root 0:1 f
 
index fbe71c7b076ced4d5b81031f521c9994b86a2871..c228bde801f7f17fb8a6cdbed9b3a18c26d0dd59 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ chown
 
-ln -s no-such dangle || framework_failure
+ln -s no-such dangle || framework_failure_
 
 
 set _ `ls -ldo dangle`; shift; user=$3
index c10c5d90992033b6b63dfd18cd8639439a28ac01..147544b4389a5a3551ed89dc1c08c6d226b27e1a 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ chown
 
-id_u=`id -u` || framework_failure
-test -n "$id_u" || framework_failure
+id_u=`id -u` || framework_failure_
+test -n "$id_u" || framework_failure_
 
-id_un=`id -un` || framework_failure
-test -n "$id_un" || framework_failure
+id_un=`id -un` || framework_failure_
+test -n "$id_un" || framework_failure_
 
-id_g=`id -g` || framework_failure
-test -n "$id_g" || framework_failure
+id_g=`id -g` || framework_failure_
+test -n "$id_g" || framework_failure_
 
-id_gn=`id -gn` || framework_failure
-test -n "$id_gn" || framework_failure
+id_gn=`id -gn` || framework_failure_
+test -n "$id_gn" || framework_failure_
 
 # FreeBSD 6.x's getgrnam fails to look up a group name containing
 # a space. On such a system, skip this test if the group name contains
index 7ed8a037bf2888c8bc2da32cdca189bc88847bc0..43b7df0d9911f9b5d0e6957e505b75d99cb25433 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir a b c || framework_failure
-ln -s ../t a/1 || framework_failure
-echo payload > b/1 || framework_failure
+mkdir a b c || framework_failure_
+ln -s ../t a/1 || framework_failure_
+echo payload > b/1 || framework_failure_
 
 echo "cp: will not copy \`b/1' through just-created symlink \`c/1'" \
-  > exp || framework_failure
+  > exp || framework_failure_
 
 # Check both cases: a dangling symlink, and one pointing to a writable file.
 
index 8c132a940bad93c736b570a891548daf1d138390..261a1c954b18bf0c52cbf3e4cea929248275ac66 100755 (executable)
@@ -26,8 +26,8 @@ require_acl_
 grep '^#define USE_ACL 1' $CONFIG_HEADER > /dev/null ||
   skip_ "insufficient ACL support"
 
-mkdir -p a b || framework_failure
-touch a/file || framework_failure
+mkdir -p a b || framework_failure_
+touch a/file || framework_failure_
 
 # Ensure that setfacl and getfacl work on this file system.
 skip=no
@@ -38,23 +38,23 @@ test $skip = yes &&
 
 # copy a file without preserving permissions
 cp a/file b/ || fail=1
-acl2=`cd b && getfacl file` || framework_failure
+acl2=`cd b && getfacl file` || framework_failure_
 test "$acl1" = "$acl2" || fail=1
 
 # Update with acl set above
-acl1=`cd a && getfacl file` || framework_failure
+acl1=`cd a && getfacl file` || framework_failure_
 
 # copy a file, preserving permissions
 cp -p a/file b/ || fail=1
-acl2=`cd b && getfacl file` || framework_failure
+acl2=`cd b && getfacl file` || framework_failure_
 test "$acl1" = "$acl2" || fail=1
 
 # copy a file, preserving permissions, with --attributes-only
-echo > a/file || framework_failure # add some data
-test -s a/file || framework_failure
+echo > a/file || framework_failure_ # add some data
+test -s a/file || framework_failure_
 cp -p --attributes-only a/file b/ || fail=1
 test -s b/file && fail=1
-acl2=`cd b && getfacl file` || framework_failure
+acl2=`cd b && getfacl file` || framework_failure_
 test "$acl1" = "$acl2" || fail=1
 
 Exit $fail
index c89aac5c2155f058de2f56a753ce1f194f3864b5..708b9d7dd06a7f60bb8aa0cf922fa5d442052ab6 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir x y || framework_failure
+mkdir x y || framework_failure_
 
 
 cp -a x y || fail=1
index 8e683ed85f8819bc95cb87b1bf3b32d21524ae92..bb6478940e8d5fbdcb2ce9610374436b6a1f94cd 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-echo a > a || framework_failure
-echo a-tilde > a~ || framework_failure
+echo a > a || framework_failure_
+echo a-tilde > a~ || framework_failure_
 
 # This cp command should exit nonzero.
 cp --b=simple a~ a > out 2>&1 && fail=1
index be5fb082a3641535d2f400d2916fa6f706f5bc38..a0fb60849327211df346727231db50cb2cf33b8e 100755 (executable)
@@ -31,8 +31,8 @@ grep '^#define HAVE_CAP 1' $CONFIG_HEADER > /dev/null \
   || skip_ "getcap utility not found"
 
 
-touch file || framework_failure
-chown $NON_ROOT_USERNAME file || framework_failure
+touch file || framework_failure_
+chown $NON_ROOT_USERNAME file || framework_failure_
 
 setcap 'cap_net_bind_service=ep' file ||
   skip_ "setcap doesn't work"
index 49d1fa4d9bcb6ef9dc0eee3d55146dae3c4dccc1..9a146240da2759c40439133c2636d25ba7d1f5d0 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir src-dir dest-dir || framework_failure
-echo f > f || framework_failure
-ln -s f slink || framework_failure
-ln -s no-such-file src-dir/slink || framework_failure
+mkdir src-dir dest-dir || framework_failure_
+echo f > f || framework_failure_
+ln -s f slink || framework_failure_
+ln -s no-such-file src-dir/slink || framework_failure_
 
 
 cp -H -R slink src-dir dest-dir || fail=1
index 76684d6f44513de8c5647b40e5f57d224a8b5c16..8a8e37415c3f4539455b5a657ac1ac36a99ef0c4 100755 (executable)
@@ -31,11 +31,11 @@ cleanup_() { cd /; umount "$cwd/mnt"; }
 ctx=root:object_r:tmp_t:s0
 
 # Check basic functionality - before check on fixed context mount
-touch c || framework_failure
-chcon $ctx c || framework_failure
-cp -a c d 2>err || framework_failure
-cp --preserve=context c e || framework_failure
-cp --preserve=all c f || framework_failure
+touch c || framework_failure_
+chcon $ctx c || framework_failure_
+cp -a c d 2>err || framework_failure_
+cp --preserve=context c e || framework_failure_
+cp --preserve=all c f || framework_failure_
 ls -Z d | grep $ctx || fail=1
 test -s err && fail=1   #there must be no stderr output for -a
 ls -Z e | grep $ctx || fail=1
@@ -52,11 +52,11 @@ mount -oloop,context=$ctx blob mnt           || skip=1
 test $skip = 1 \
   && skip_ "insufficient mount/ext2 support"
 
-cd mnt                                       || framework_failure
+cd mnt                                       || framework_failure_
 
-echo > f                                     || framework_failure
+echo > f                                     || framework_failure_
 
-echo > g                                     || framework_failure
+echo > g                                     || framework_failure_
 # /bin/cp from coreutils-6.7-3.fc7 would fail this test by letting cp
 # succeed (giving no diagnostics), yet leaving the destination file empty.
 cp -a f g 2>err || fail=1
@@ -85,7 +85,7 @@ grep "Operation not supported" err && fail=1
 # NFS mounted directory.  When doing that, I get this diagnostic:
 # cp: failed to set the security context of `g' to `system_u:object_r:nfs_t': \
 #   Operation not supported
-cat <<\EOF > exp || framework_failure=1
+cat <<\EOF > exp || framework_failure_
 cp: failed to set the security context of
 EOF
 
index 89900f6f2e599afb56965f4bd6ffea4b32dcc1e6..1230ae0cb82d7ce3d46261e95f16d5856b9fa33b 100755 (executable)
@@ -20,9 +20,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir a b c d || framework_failure
-ln -s ../c a || framework_failure
-ln -s ../c b || framework_failure
+mkdir a b c d || framework_failure_
+ln -s ../c a || framework_failure_
+ln -s ../c b || framework_failure_
 
 
 # Before coreutils-5.94, the following would fail with this message:
index 1bd51fa66b2c4e9082882f3a9bbf0a0766ecd7f9..8e9d940e4341abd40e33ecd58386befd4f7dd550 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir -p a b/a/c || framework_failure
-touch a/c || framework_failure
+mkdir -p a b/a/c || framework_failure_
+touch a/c || framework_failure_
 
 
 # coreutils 6.2 cp would neglect to prompt in this case.
 echo n | cp -iR a b 2>/dev/null || fail=1
 
 # test miscellaneous combinations of -f -i -n parameters
-touch c d || framework_failure
+touch c d || framework_failure_
 echo "\`c' -> \`d'" > out_copy
 > out_empty
 
index 2f26dbd820b444c112aef026e3d09114759710e0..9857fec4134df88c64bc2ae6e478357fe0321213 100755 (executable)
@@ -56,9 +56,9 @@ xattr_name="user.foo"
 xattr_value="bar"
 xattr_pair="$xattr_name=\"$xattr_value\""
 
-echo test > xattr/a || framework_failure
+echo test > xattr/a || framework_failure_
 getfattr -d xattr/a >out_a || skip_ "failed to get xattr of file"
-grep -F "$xattr_pair" out_a >/dev/null && framework_failure
+grep -F "$xattr_pair" out_a >/dev/null && framework_failure_
 setfattr -n "$xattr_name" -v "$xattr_value" xattr/a >out_a \
   || skip_ "failed to set xattr of file"
 getfattr -d xattr/a >out_a || skip_ "failed to get xattr of file"
index 2f19af227ee99c89994993375b0c9ea9bd6a532b..fcb5c447a0444e615bc1757f5a82a3e018741576 100755 (executable)
@@ -25,10 +25,10 @@ working_umask_or_skip_
 # Run the setgid check from the just-created directory.
 skip_if_setgid_
 
-mkdir foo bar || framework_failure
-mkdir -p a/b/c d e g || framework_failure
-ln -s d/a sym || framework_failure
-touch f || framework_failure
+mkdir foo bar || framework_failure_
+mkdir -p a/b/c d e g || framework_failure_
+ln -s d/a sym || framework_failure_
+touch f || framework_failure_
 
 
 # With 4.0.37 and earlier (back to when?), this would fail
index 9cc4962acb43952f63727c722fad925f3171cbd2..e34b29b6f3ce74107608a25b61ff7a271f5b0536 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-touch f slink-target || framework_failure
-ln -s slink-target slink || framework_failure
+touch f slink-target || framework_failure_
+ln -s slink-target slink || framework_failure_
 
 cp -d f slink || fail=1
 
index 23979a95d5725ec7e03aa0046ec5e69a30fdba06..c6712e2ed41e60fae517f0602646b7c4e46dcdf0 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir d e || framework_failure
+mkdir d e || framework_failure_
 
 # Do it once with no destination...
 cp -R --remove-destination d e || fail=1
index 57184ab13c244936f4ccaaaee709e1623c3d94b9..e206bd007f413356c09ee8470af626f7c0faecc9 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir dir1 dir2 || framework_failure
-touch dir1/file || framework_failure
+mkdir dir1 dir2 || framework_failure_
+touch dir1/file || framework_failure_
 
 cp -R dir1/ dir2 || fail=1
 
index 5a44516004679276df228c1e48208b228d02801d..5beaf306b964ccf16bfc34b95351c15bf302ed06 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir dir || framework_failure
-touch file || framework_failure
+mkdir dir || framework_failure_
+touch file || framework_failure_
 
 
 # In 4.0.35, this cp invocation silently succeeded.
index 83d4711c3a13c020531f31dd419c9f019d37c9ba..404c83e39cb3b52fe6e1c5739d0fb2e4350a625b 100755 (executable)
 print_ver_ cp
 skip_if_root_
 
-chmod g-s . || framework_failure
-mkdir D D/D || framework_failure
-touch D/a || framework_failure
-chmod 0 D/a || framework_failure
-chmod u=rx,go=,-st D || framework_failure
+chmod g-s . || framework_failure_
+mkdir D D/D || framework_failure_
+touch D/a || framework_failure_
+chmod 0 D/a || framework_failure_
+chmod u=rx,go=,-st D || framework_failure_
 
 
 # This is expected to exit non-zero, because it can't read D/a.
index 095d1b7c3fe3d779ca50b8bbc25d202ef41b6f75..6ce59576788a26362e9e2342d9810606eebba615 100755 (executable)
@@ -55,7 +55,7 @@ filefrag -v space.test | grep -F 'unwritten' > /dev/null ||
 rm space.test
 
 # Ensure we read a large empty file quickly
-fallocate -l 300MiB empty.big || framework_failure
+fallocate -l 300MiB empty.big || framework_failure_
 timeout 3 cp --sparse=always empty.big cp.test || fail=1
 test $(stat -c %s empty.big) = $(stat -c %s cp.test) || fail=1
 rm empty.big cp.test
@@ -63,7 +63,7 @@ rm empty.big cp.test
 # Ensure we handle extents beyond file size correctly.
 # Note until we support fallocate, we will not maintain
 # the file allocation.  FIXME: amend this test when fallocate is supported.
-fallocate -l 10MiB -n unwritten.withdata || framework_failure
+fallocate -l 10MiB -n unwritten.withdata || framework_failure_
 dd count=10 if=/dev/urandom conv=notrunc iflag=fullblock of=unwritten.withdata
 cp unwritten.withdata cp.test || fail=1
 test $(stat -c %s unwritten.withdata) = $(stat -c %s cp.test) || fail=1
index ed10f2bc2ca955c1d625eb662fd1ece7f4e6f0e1..deb5a53258722fa9cef6a550b02ebe2806d16937 100755 (executable)
@@ -24,7 +24,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir a dir || framework_failure
+mkdir a dir || framework_failure_
 
 
 # This command should exit nonzero.
index 22c6ed25783f85befe6eafa268ca97300e4f8da3..73c8bb318b228dba99be57689bea44adfef657b4 100755 (executable)
@@ -20,9 +20,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-touch src || framework_failure
-touch dest || framework_failure
-touch dest2 || framework_failure
+touch src || framework_failure_
+touch dest || framework_failure_
+touch dest2 || framework_failure_
 
 
 cp -f --link src dest || fail=1
index 1b80021e06e280379656d3a921af36afececb7ba..d622bc4e718eb9d734bd4751bb55f59e0df1adb3 100755 (executable)
@@ -26,10 +26,10 @@ b=$(printf %031d 1)
 (mkdir $a \
    && cd $a \
    && seq --format=%031g 10000 |xargs touch \
-   && seq --format=d%030g 10000 |xargs mkdir ) || framework_failure
-cp -al $a $b || framework_failure
-mkdir e || framework_failure
-mv $a $b e || framework_failure
+   && seq --format=d%030g 10000 |xargs mkdir ) || framework_failure_
+cp -al $a $b || framework_failure_
+mkdir e || framework_failure_
+mv $a $b e || framework_failure_
 
 (ulimit -v 20000; cp -al e f) || fail=1
 
index 12007e2a6d53af14b5d1cfaf383d15c0282e2e7e..ca0e5478c54d2df60e36ce4a51858ec19eadc7ae 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-ln -s no-such-file dangling-slink || framework_failure
+ln -s no-such-file dangling-slink || framework_failure_
 
 
 # Prior to coreutils-6.0, this would fail on non-Linux kernels,
index 1e42b898a9e333f72a06bd71143c7989e02680be..d1212e518478465d68153ccd6b10337b8fdbece2 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-touch a || framework_failure
-ln a b || framework_failure
-mkdir c || framework_failure
-cp -d a b c || framework_failure
-test -f c/a || framework_failure
-test -f c/b || framework_failure
+touch a || framework_failure_
+ln a b || framework_failure_
+mkdir c || framework_failure_
+cp -d a b c || framework_failure_
+test -f c/a || framework_failure_
+test -f c/b || framework_failure_
 
 
 a_inode=`ls -i c/a|sed 's,c/.*,,'`
index 0d09f5d832f5e7c53c6e7a79049b4568fdd3511f..fff1c5cb16e1e77813e7847b715b7b058af4c471 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ cp
 # Check that the timestamps of the symlink are copied
 # if we're using hardlink to symlink emulation.
 touch file
-ln -s file link || framework_failure
+ln -s file link || framework_failure_
 touch -m -h -d 2011-01-01 link ||
   skip_ "Your system doesn't support updating symlink timestamps"
 case `stat --format=%y link` in
index 896145faac9dd7c3be5c76ee0b8173724b5be0f6..6c8218148e695ef815ebdc942c583d8bc805d56e 100755 (executable)
@@ -23,14 +23,14 @@ working_umask_or_skip_
 # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
 require_local_dir_
 
-mkdir -p a/b/c a/b/d e || framework_failure
-touch a/b/c/foo a/b/d/foo || framework_failure
-cp -p --parent a/b/c/foo e || framework_failure
+mkdir -p a/b/c a/b/d e || framework_failure_
+touch a/b/c/foo a/b/d/foo || framework_failure_
+cp -p --parent a/b/c/foo e || framework_failure_
 
 # Make permissions of e/a different, so that we exercise the
 # code in cp -p --parents that propagates permissions even
 # to a destination directory that it doesn't create.
-chmod g-rx e/a e/a/b || framework_failure
+chmod g-rx e/a e/a/b || framework_failure_
 
 cp -p --parent a/b/d/foo e || fail=1
 
index 366efbaa7f5dc99f69e3a6da41353537e6b2e718..0f5200250bcc24dd223f06b1de06cc2e731a5688 100755 (executable)
@@ -23,7 +23,7 @@ print_ver_ cp
 require_local_dir_
 
 umask 002
-mkdir mode ownership d || framework_failure
+mkdir mode ownership d || framework_failure_
 chmod g+s d 2>/dev/null # The cp test is valid either way.
 
 
index 023a2909eee080868d498e7ab32a54eac751abd3..03c6a713454061978b177e2d0032808f4658b98a 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ cp
 # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
 require_local_dir_
 
-touch f || framework_failure
+touch f || framework_failure_
 
 cp --preserve=mode,links f g || fail=1
 
index 0f9bfe53d30033d38ff145cb9103abfa098b325c..f9c60198aff6908cf56ebee68b2be414f30cc9f2 100755 (executable)
@@ -23,7 +23,7 @@ grep '^#define HAVE_UTIMENSAT 1' "$CONFIG_HEADER" > /dev/null ||
 grep '^#define HAVE_LUTIMES 1' "$CONFIG_HEADER" > /dev/null ||
   skip_ 'this system lacks the utimensat function'
 
-ln -s no-such dangle || framework_failure
+ln -s no-such dangle || framework_failure_
 
 # If the current file system lacks sub-second resolution, sleep for 2s to
 # ensure that the times on the copy are different from those of the original.
@@ -32,9 +32,9 @@ case $(stat --format=%y dangle) in
 esac
 
 # Can't use --format=%x, as lstat() modifies atime on some platforms.
-cp -Pp dangle d2 || framework_failure
-stat --format=%y dangle > t1 || framework_failure
-stat --format=%y d2 > t2 || framework_failure
+cp -Pp dangle d2 || framework_failure_
+stat --format=%y dangle > t1 || framework_failure_
+stat --format=%y d2 > t2 || framework_failure_
 
 compare t1 t2 || fail=1
 
index 77c764b2e1d5cd2cca59ac975693f06c7bb413a8..53abc43f9fc07a413accb70fb8cc9abc567615c7 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-touch empty || framework_failure
+touch empty || framework_failure_
 
 f=/proc/cpuinfo
 test -r $f || f=empty
index feca7d631c9fea370e34054e53bae264ab480dde..0ca358cf4aa8895a458a92a33bb531dafb6ccd86 100755 (executable)
@@ -23,9 +23,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-echo abc > foo || framework_failure
-ln -s foo slink || framework_failure
-ln -s no-such-file no-file || framework_failure
+echo abc > foo || framework_failure_
+ln -s foo slink || framework_failure_
+ln -s no-such-file no-file || framework_failure_
 
 
 # This would fail in 4.1.5, not in 4.1.6.
index 1639bb4d46623e15df0f0915963cf879a34d2ca2..90251e0d4c061a2ff78590bbf4f1d034bc9de04e 100755 (executable)
@@ -22,9 +22,9 @@ print_ver_ cp
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 a_other="$other_partition_tmpdir/a"
-rm -f "$a_other" || framework_failure
+rm -f "$a_other" || framework_failure_
 
-echo non_zero_size > "$a_other" || framework_failure
+echo non_zero_size > "$a_other" || framework_failure_
 
 # we shouldn't be able to reflink() files on separate partitions
 cp --reflink      "$a_other" b && fail=1
index 367704d7248d7a48d2ca4363b212a323ccc1989d..a712d740a4bbc8904ce64ea627fa512fbc036d90 100755 (executable)
@@ -23,10 +23,10 @@ print_ver_ cp
 : > time_check
 : > file
 ts='2009-08-28 19:00'
-touch -d "$ts" file || framework_failure
+touch -d "$ts" file || framework_failure_
 test time_check -nt file || skip_ "The system clock is wrong"
 
-chmod a=rwx file || framework_failure
+chmod a=rwx file || framework_failure_
 umask 077
 cp --reflink=auto --preserve file copy || fail=1
 
index 82a1d7b365cc9fb6b7cc6b3304c9dc5872c32eac..fb148e08e509dd0ab847787745b572005564f61e 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-touch file || framework_failure
-ln -s file a || framework_failure
-ln -s file b || framework_failure
-ln -s no-such-file c || framework_failure
-ln -s no-such-file d || framework_failure
+touch file || framework_failure_
+ln -s file a || framework_failure_
+ln -s file b || framework_failure_
+ln -s no-such-file c || framework_failure_
+ln -s no-such-file d || framework_failure_
 
 cp --update --no-dereference a b || fail=1
 cp --update --no-dereference c d || fail=1
index 294b9048222317a3b085155889ff3358973505d1..4d78640eef2f5d32a7a3df3885807f99e0588288 100755 (executable)
@@ -25,7 +25,7 @@ require_sparse_support_
 # Make its size one larger than 128K, in order to tickle the
 # bug in coreutils-6.0.
 size=`expr 128 \* 1024 + 1`
-dd bs=1 seek=$size of=sparse < /dev/null 2> /dev/null || framework_failure
+dd bs=1 seek=$size of=sparse < /dev/null 2> /dev/null || framework_failure_
 
 
 cp --sparse=always sparse copy || fail=1
index 37d8ea7a437126cb4b6c5c79e924ee0d52f60232..5eedb4fa7207b6713ef2158495d6419642de92ea 100755 (executable)
@@ -100,8 +100,8 @@ for i in $(seq 1 2 21); do
       #   j: 6 extents found
 
       # exclude the physical block numbers; they always differ
-      filefrag -v j1 > ff1 || framework_failure
-      filefrag -vs j2 > ff2 || framework_failure
+      filefrag -v j1 > ff1 || framework_failure_
+      filefrag -vs j2 > ff2 || framework_failure_
       { f ff1; f ff2; } | $PERL $abs_top_srcdir/tests/filefrag-extent-compare \
         || {
              warn_ ignoring filefrag-reported extent map differences
index 9168f143e07ba953486915334fadb4f144e8f0b5..e3e555937acd614d9e9c812cfab0320c04f85471 100755 (executable)
 print_ver_ cp
 require_root_
 
-touch a b c || framework_failure
-chmod u+sx,go= a || framework_failure
-chmod u=rwx,g=sx,o= b || framework_failure
-chmod a=r,ug+sx c || framework_failure
-chown $NON_ROOT_USERNAME . || framework_failure
-chmod u=rwx,g=rx,o=rx . || framework_failure
+touch a b c || framework_failure_
+chmod u+sx,go= a || framework_failure_
+chmod u=rwx,g=sx,o= b || framework_failure_
+chmod a=r,ug+sx c || framework_failure_
+chown $NON_ROOT_USERNAME . || framework_failure_
+chmod u=rwx,g=rx,o=rx . || framework_failure_
 
 
 cp -p a a2 || fail=1
index e9bef65961958642a914ac7ff287392a2e134263..069c1935cb1524fcbd9e28b860c0e3b2b82fb026 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir x y || framework_failure
+mkdir x y || framework_failure_
 
 
 cd y
index 70a8435341d839101de2129e6025ca6375110176..45c3069366a19c3e883772136618945882746322 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-mkdir dir || framework_failure
-ln -s dir symlink || framework_failure
+mkdir dir || framework_failure_
+ln -s dir symlink || framework_failure_
 
 cp -dR symlink/ s || fail=1
 set `ls -l s`
index 9e061220b2f89622b6edae730927a3e6742c896d..62f111587d4dc3c3b518fce44fbc353790a02378 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp
 
-ln -s no-such dangle || framework_failure
-echo hi > f || framework_failure
-echo hi > exp || framework_failure
+ln -s no-such dangle || framework_failure_
+echo hi > f || framework_failure_
+echo hi > exp || framework_failure_
 echo "cp: not writing through dangling symlink \`dangle'" \
-    > exp-err || framework_failure
+    > exp-err || framework_failure_
 
 
 # Starting with 6.9.90, this usage fails, by default:
index 9350545a6fcaf2990f3ba60edae66f9db862e787..41874f77273ceaec3375c3447a9742d471997202 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ dd
 
-truncate -s 8192 in || framework_failure
+truncate -s 8192 in || framework_failure_
 dd if=in oflag=direct of=out 2> /dev/null \
   || skip_ 'this file system lacks support for O_DIRECT'
 
-truncate -s 511 short || framework_failure
-truncate -s 8191 m1 || framework_failure
-truncate -s 8193 p1 || framework_failure
+truncate -s 511 short || framework_failure_
+truncate -s 8191 m1 || framework_failure_
+truncate -s 8193 p1 || framework_failure_
 
 for i in short m1 p1; do
   rm -f out
index 820984c928dca42221078e64d91a26f5dab66ac3..27520c4c441cb62682adeb89b8df6aff00ac13bf 100755 (executable)
@@ -26,9 +26,9 @@ tmp_sym=dd-sym
 tmp_out=dd-out
 
 warn=0
-echo data > $tmp_in || framework_failure
-ln $tmp_in $tmp_in2 || framework_failure
-ln -s $tmp_in $tmp_sym || framework_failure
+echo data > $tmp_in || framework_failure_
+ln $tmp_in $tmp_in2 || framework_failure_
+ln -s $tmp_in $tmp_sym || framework_failure_
 
 dd if=$tmp_in of=$tmp_out 2> /dev/null || fail=1
 compare $tmp_in $tmp_out || fail=1
@@ -87,9 +87,9 @@ test "$outbytes" -eq 3 || fail=1
 # There might be some missed failures but it's unlikely.
 (echo a; sleep .1; echo b) \
   | env LC_ALL=C dd bs=4 status=noxfer iflag=fullblock >out 2>err || fail=1
-printf 'a\nb\n' > out_ok || framework_failure
+printf 'a\nb\n' > out_ok || framework_failure_
 echo "1+0 records in
-1+0 records out" > err_ok || framework_failure
+1+0 records out" > err_ok || framework_failure_
 compare out_ok out || fail=1
 compare err_ok err || fail=1
 
index 0af165dc9fced6c918b4a388f7ee3c19558cfecb..5dcd897a443322c2922af08bece3c83813d08a65 100755 (executable)
@@ -31,7 +31,7 @@ dd iflag=nocache,direct if=/dev/null && fail=1
 # The rest ensure that the documented uses cases
 # proceed without error
 for f in ifile ofile; do
-  dd if=/dev/zero of=$f conv=fdatasync count=100 || framework_failure
+  dd if=/dev/zero of=$f conv=fdatasync count=100 || framework_failure_
 done
 
 # Advise to drop cache for whole file
index f66a9ba7c27f055a1c181a893a0c6415a27e6df2..558d729e1127dffde6599cc3e0e259b45774336f 100755 (executable)
 print_ver_ dd
 
 # 2 short reads -> 1 full write + 1 partial write
-cat <<\EOF > exp-reblock || framework_failure
+cat <<\EOF > exp-reblock || framework_failure_
 0+2 records in
 1+1 records out
 4 bytes (4 B) copied
 EOF
 
 # 2 short reads -> 2 partial writes
-cat <<\EOF > exp-no-reblock || framework_failure
+cat <<\EOF > exp-no-reblock || framework_failure_
 0+2 records in
 0+2 records out
 4 bytes (4 B) copied
index a54e0106c00b5b32e1e917706d7ccfd211292bb6..3f1927fe5679c8be988e5049e5fe5ff135316ba3 100755 (executable)
@@ -33,7 +33,7 @@ get_device_size() {
 
 # Get path to device the current dir is on.
 # Note df can only get fs size, not device size.
-device=$(df -P . | tail -n1 | cut -d' ' -f1) || framework_failure
+device=$(df -P . | tail -n1 | cut -d' ' -f1) || framework_failure_
 
 dev_size=$(get_device_size "$device") ||
   skip_ "failed to determine size of $device"
@@ -45,14 +45,14 @@ timeout 10 dd bs=1 skip=$DEV_OFLOW count=0 status=noxfer < "$device" 2> err
 test "$?" = "1" || fail=1
 echo "dd: \`standard input': cannot skip: Invalid argument
 0+0 records in
-0+0 records out" > err_ok || framework_failure
+0+0 records out" > err_ok || framework_failure_
 compare err_ok err || fail=1
 
 timeout 10 dd bs=1 seek=$DEV_OFLOW count=0 status=noxfer > "$device" 2> err
 test "$?" = "1" || fail=1
 echo "dd: \`standard output': cannot seek: Invalid argument
 0+0 records in
-0+0 records out" > err_ok || framework_failure
+0+0 records out" > err_ok || framework_failure_
 compare err_ok err || fail=1
 
 Exit $fail
index 29ae8ebf93988a8c316c0086ac6599fe60a251cf..c1930def4e8e491747ea1bfce51cbd2d5470a613 100755 (executable)
@@ -22,12 +22,12 @@ require_sparse_support_ # for `truncate --size=$OFF_T_MAX`
 eval $(getlimits) # for OFF_T limits
 
 
-printf "1234" > file || framework_failure
+printf "1234" > file || framework_failure_
 
 echo "\
 dd: \`standard input': cannot skip to specified offset
 0+0 records in
-0+0 records out" > skip_err || framework_failure
+0+0 records out" > skip_err || framework_failure_
 
 # skipping beyond number of blocks in file should issue a warning
 dd bs=1 skip=5 count=0 status=noxfer < file 2> err || fail=1
@@ -60,7 +60,7 @@ compare skip_err err || fail=1
 # seeking beyond end of file is OK
 dd bs=1 seek=5 count=0 status=noxfer > file 2> err || fail=1
 echo "0+0 records in
-0+0 records out" > err_ok || framework_failure
+0+0 records out" > err_ok || framework_failure_
 compare err_ok err || fail=1
 
 # skipping > OFF_T_MAX should fail immediately
index 28ed568d09d4b65bcc29ced627626c0beb634260..a6fd4a52cd51ca090219f4ded4f03d9cdc8ab988 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ dd
 
-printf 000100020003xx > in || framework_failure
+printf 000100020003xx > in || framework_failure_
 
 
 dd cbs=4 ibs=4 conv=unblock,sync < in > out 2> /dev/null || fail=1
index bc9c99e5fecbfabdbd7ab731963ab402a2186f36..bbf2e3b9c281d12e5d701b14cf26f2564258a52e 100755 (executable)
@@ -21,7 +21,7 @@ print_ver_ df
 
 df || skip_ "df fails"
 
-cat <<\EOF > check-df || framework_failure
+cat <<\EOF > check-df || framework_failure_
 my ($total, $used, $avail) = (0, 0, 0);
 while (<>)
   {
@@ -52,9 +52,9 @@ EOF
 
 # Use --block-size=512 to keep df from printing rounded-to-kilobyte
 # numbers which wouldn't necessarily add up to the displayed total.
-df --total -P --block-size=512 > space || framework_failure
+df --total -P --block-size=512 > space || framework_failure_
 cat space  # this helps when debugging any test failure
-df --total -i -P               > inode || framework_failure
+df --total -i -P               > inode || framework_failure_
 cat inode
 
 $PERL check-df space || fail=1
index e12ff1e1a14d57d0b3400f790dba5267255857fb..3cb3c0d993dca581dbee1dc2c49963e880749c7d 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-mkdir -p a/b d d/sub || framework_failure
+mkdir -p a/b d d/sub || framework_failure_
 
 # Ensure that these files contain more than 64 bytes, so that we don't
 # immediately disqualify file systems (e.g., NetApp) on which smaller
 # files take up zero disk blocks.
-printf '%*s' 257 make-sure-the-file-is-non-empty > a/b/F || framework_failure
+printf '%*s' 257 make-sure-the-file-is-non-empty > a/b/F || framework_failure_
 printf %4096s x > d/1
 cp d/1 d/sub/2
 
index ebd9c18ae7f21fc082755c6450599d69552fab4e..63837939f6d6f1457a79a1478a4e87876d3afc4f 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-mkdir -p a/sub || framework_failure
-ln -s a/sub slink || framework_failure
-touch b || framework_failure
-ln -s .. a/sub/dotdot || framework_failure
-ln -s nowhere dangle || framework_failure
+mkdir -p a/sub || framework_failure_
+ln -s a/sub slink || framework_failure_
+touch b || framework_failure_
+ln -s .. a/sub/dotdot || framework_failure_
+ln -s nowhere dangle || framework_failure_
 
 
 # This used to fail with the following diagnostic:
index 767f94e7a19f375a8cbc95a9304f3e6e3ec9ae5c..474f7d06c7c4aaa144285aff45f8a7d107b77687 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-mkdir -p dir/a || framework_failure
-ln -s dir slink || framework_failure
-printf %65536s x > 64k || framework_failure
-ln -s 64k slink-to-64k || framework_failure
+mkdir -p dir/a || framework_failure_
+ln -s dir slink || framework_failure_
+printf %65536s x > 64k || framework_failure_
+ln -s 64k slink-to-64k || framework_failure_
 
 
 du -D slink | sed 's/^[0-9][0-9]*      //' > out
index 580454d72834618339fe616c1df3a7b1bf0d9378..7403f5d04edb88fd6734b0752dbdbc7484deacff 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-mkdir -p a/b/c a/x/y a/u/v || framework_failure
+mkdir -p a/b/c a/x/y a/u/v || framework_failure_
 
 
 du --exclude=x a | sed 's/^[0-9][0-9]* //' | sort > out || fail=1
index 65933b254bfd71b6212cab2f00414020b24aeacb..ad744a8c0c9c0eca55928de1a9dabbfc7c6e133c 100755 (executable)
@@ -34,7 +34,7 @@ for i in $x; do
 done
 
 # This may fail due to command line limitations.
-touch $f || framework_failure
+touch $f || framework_failure_
 
 
 # With coreutils-5.0, this would fail due to a file descriptor leak.
index 73f5d6665ddc4a9390f5a25444e9610299b4c72d..fac7e0ede787b8a3e459ee578e96edef94983f71 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ du
 skip_if_root_
 
 mkdir f && cd f && mkdir a b c d e && touch c/j && chmod a-x c \
-    || framework_failure
+    || framework_failure_
 
 du > ../t 2>&1 && fail=1
 
index 2eb40ddb24eb35fb8d0d77ef37e94463b407e60f..c160fbbf50421310f7ae7f6194ce6dfc81a131cd 100755 (executable)
@@ -19,7 +19,7 @@
 print_ver_ du
 skip_if_root_
 
-mkdir -p a/sub || framework_failure
+mkdir -p a/sub || framework_failure_
 
 
 du -s a > exp || fail=1
index 220ac7b4fa5197d953a4ed1ba5f47cf10d66bcd8..2f16782d1886c0bda673dadf01dd5265f3beb0d9 100755 (executable)
@@ -25,9 +25,9 @@ print_ver_ du
 skip_if_root_
 
 cwd=`pwd`
-mkdir -p no-x a/b || framework_failure
-cd no-x || framework_failure
-chmod 0 . || framework_failure
+mkdir -p no-x a/b || framework_failure_
+cd no-x || framework_failure_
+chmod 0 . || framework_failure_
 
 
 du "$cwd/a" > /dev/null || fail=1
index 92cd3788c92b4fd881cdf4fb6be3ab1964a4564c..8523963fba57666c689862913aa1c3f322838330 100755 (executable)
@@ -41,10 +41,10 @@ dir=`printf '%200s\n' ' '|tr ' ' x`
 # Construct a hierarchy containing a relative file with a name
 # longer than PATH_MAX.
 # for i in `seq 52`; do
-#   mkdir $dir || framework_failure
-#   cd $dir || framework_failure
+#   mkdir $dir || framework_failure_
+#   cd $dir || framework_failure_
 # done
-# cd $tmp || framework_failure
+# cd $tmp || framework_failure_
 
 # Sheesh.  Bash 3.1.5 can't create this hierarchy.  I get
 #   cd: error retrieving current directory: getcwd:
@@ -57,11 +57,11 @@ cwd=`pwd`
 $PERL \
     -e 'my $d = '$dir'; foreach my $i (1..52)' \
     -e '  { mkdir ($d, 0700) && chdir $d or die "$!" }' \
-  || framework_failure
+  || framework_failure_
 
-mkdir inaccessible || framework_failure
-cd inaccessible || framework_failure
-chmod 0 . || framework_failure
+mkdir inaccessible || framework_failure_
+cd inaccessible || framework_failure_
+chmod 0 . || framework_failure_
 
 du -s "$cwd/$dir" > /dev/null || fail=1
 
index 1f46a4a4088756fe68f6f919d06ff35fa60f5764..6c1d8d5de36316856ad1859104533ec450b4f2bc 100755 (executable)
@@ -30,14 +30,14 @@ print_ver_ du
 n=400
 
 dir_list=`seq $n`
-mkdir $dir_list || framework_failure
+mkdir $dir_list || framework_failure_
 file=1
 i_minus_1=0
 for i in $dir_list `expr $n + 1`; do
   case $i_minus_1 in
   0) ;;
   *)
-    ln -s ../$i $i_minus_1/s || framework_failure
+    ln -s ../$i $i_minus_1/s || framework_failure_
     file=$file/s;;
   esac
   i_minus_1=$i
index 68302b8ff92f4981e5ae7f543eb871e18163b0ee..322a9a59371763f625fab4e8c26b7e8539b0959d 100755 (executable)
@@ -59,7 +59,7 @@ EOF
 chmod a+x inotify-watch-for-dir-access.py
 
 t=T/U
-mkdir d2 || framework_failure
+mkdir d2 || framework_failure_
 long=d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z
 # One iteration of this loop creates a tree with which
 # du sometimes completes its traversal before the above rename.
@@ -68,7 +68,7 @@ long=d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z
 # Using 10 iterations was not enough, either.
 # Using 30, I saw no failure in 200 trials.
 for i in $(seq 30); do
-  mkdir -p $t/3/a/b/c/$i/$long || framework_failure
+  mkdir -p $t/3/a/b/c/$i/$long || framework_failure_
 done
 
 # Prohibit suspension, which could otherwise cause a timeout-induced FP failure.
index 2abad5fc58cf5a010b64af0afc229d416d21c649..09a1dcc41ab0c6c2887965eb27cfbaf8a792c65a 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-mkdir -p dir/a/b || framework_failure
-ln -s dir slink || framework_failure
+mkdir -p dir/a/b || framework_failure_
+ln -s dir slink || framework_failure_
 
 
 du slink | sed 's/^[0-9][0-9]* //' > out
index de3417f82af712fcec3a8a171c0dd702bf645f43..e45f317e0bba617193ec8a2ce0ffb827f4449c66 100755 (executable)
@@ -21,8 +21,8 @@
 print_ver_ du
 skip_if_root_
 
-mkdir -p d/no-x/y || framework_failure
-chmod u=rw d/no-x || framework_failure
+mkdir -p d/no-x/y || framework_failure_
+chmod u=rw d/no-x || framework_failure_
 
 
 # This must exit nonzero.
index b4c631896ce48daaa76240bc1f1b2b2eb3aa8006..8a57c993444201ad33b2d4165277e25e628acb99 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-mkdir -p b/c y/z || framework_failure
+mkdir -p b/c y/z || framework_failure_
 
 
 # Due to a used-uninitialized variable, the "du -x" from coreutils-6.6
index 032413ae0a29228677d6167d55d85c7e6279ca8b..01fa0646b6b0c180ea6db46cb67045310f1f747a 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-mkdir a b || framework_failure
+mkdir a b || framework_failure_
 
 
 # With du from coreutils-4.5.5 and 4.5.6, this would fail with
index 21045bd7fa0bb33359efb37d7fc1f3feed9e9ab6..7c97ccec9d16bf530a475ad0a0436a207a57f741 100755 (executable)
@@ -22,8 +22,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ du
 
-mkdir -p dir/1/2 || framework_failure
-ln -s dir slink || framework_failure
+mkdir -p dir/1/2 || framework_failure_
+ln -s dir slink || framework_failure_
 
 
 du slink/ | sed 's/^[0-9][0-9]*        //' > out
index 4f15d62ea25f1d5e38830b1479beaa26072018c1..89a1461bc7683b35d9027eabcab80fdb73549020 100755 (executable)
@@ -23,11 +23,11 @@ print_ver_ du
 # Run this test from a sub-directory one level deeper than normal,
 # so that the "du .." below doesn't traverse sibling directories
 # that may be inaccessible due concurrently-running tests.
-mkdir sub || framework_failure
-cd sub || framework_failure
+mkdir sub || framework_failure_
+cd sub || framework_failure_
 
 t=t
-mkdir -p $t/1 $t/2 || framework_failure
+mkdir -p $t/1 $t/2 || framework_failure_
 
 test -d $t || fail=1
 du $t/1 $t/2 > /dev/null || fail=1
index 60c5108d4a0d0eadf1f5f421b249c3309bb58822..d60dd1fdc325d3dcbfd70a5f41cc76dda18c553f 100644 (file)
@@ -4,9 +4,6 @@
 # TESTS_ENVIRONMENT definition.
 stderr_fileno_=9
 
-# FIXME: eventually, FIXME: s/(framework_failure)\>/${1}_/ and remove the
-# FIXME: definition of framework_failure below
-
 # Having an unsearchable directory in PATH causes execve to fail with EACCES
 # when applied to an unresolvable program name, contrary to the desired ENOENT.
 # Avoid the problem by rewriting PATH to exclude unsearchable directories.
@@ -52,7 +49,7 @@ require_acl_()
 
 is_local_dir_()
 {
-  test $# = 1 || framework_failure
+  test $# = 1 || framework_failure_
   df --local "$1" >/dev/null 2>&1
 }
 
@@ -108,7 +105,7 @@ require_readable_root_()
 # with the named syscall.  Usage: require_strace_ unlink
 require_strace_()
 {
-  test $# = 1 || framework_failure
+  test $# = 1 || framework_failure_
 
   strace -V < /dev/null > /dev/null 2>&1 ||
     skip_ 'no strace program'
@@ -265,13 +262,12 @@ require_root_()
 }
 
 skip_if_root_() { uid_is_privileged_ && skip_ "must be run as non-root"; }
-framework_failure() { fatal_ 'failure in testing framework'; }
 
 # Set `groups' to a space-separated list of at least two groups
 # of which the user is a member.
 require_membership_in_two_groups_()
 {
-  test $# = 0 || framework_failure
+  test $# = 0 || framework_failure_
 
   groups=${COREUTILS_GROUPS-`(id -G || /usr/xpg4/bin/id -G) 2>/dev/null`}
   case "$groups" in
@@ -326,7 +322,7 @@ require_dirent_d_type_()
 # Does the current (working-dir) file system support sparse files?
 require_sparse_support_()
 {
-  test $# = 0 || framework_failure
+  test $# = 0 || framework_failure_
   # Test whether we can create a sparse file.
   # For example, on Darwin6.5 with a file system of type hfs, it's not possible.
   # NTFS requires 128K before a hole appears in a sparse file.
@@ -342,7 +338,7 @@ require_sparse_support_()
 
 mkfifo_or_skip_()
 {
-  test $# = 1 || framework_failure
+  test $# = 1 || framework_failure_
   if ! mkfifo "$1"; then
     # Make an exception of this case -- usually we interpret framework-creation
     # failure as a test failure.  However, in this case, when running on a SunOS
@@ -369,12 +365,12 @@ skip_if_setgid_()
 
 skip_if_mcstransd_is_running_()
 {
-  test $# = 0 || framework_failure
+  test $# = 0 || framework_failure_
 
   # When mcstransd is running, you'll see only the 3-component
   # version of file-system context strings.  Detect that,
   # and if it's running, skip this test.
-  __ctx=$(stat --printf='%C\n' .) || framework_failure
+  __ctx=$(stat --printf='%C\n' .) || framework_failure_
   case $__ctx in
     *:*:*:*) ;; # four components is ok
     *) # anything else probably means mcstransd is running
index 688e6becaf7b136b0c403f61b235e3817d7469fe..9863becf958fd55fcf6c839afd1a1a11a6209998 100755 (executable)
@@ -23,9 +23,9 @@ skip_if_root_
 dir=dir
 file=file
 
-rm -rf $dir $file || framework_failure
-mkdir -p $dir || framework_failure
-echo foo > $file || framework_failure
+rm -rf $dir $file || framework_failure_
+mkdir -p $dir || framework_failure_
+echo foo > $file || framework_failure_
 
 ginstall $file $dir || fail=1
 # Make sure the source file still exists.
index e66b74ffe626c590db5d2e84e6b04714d32ddedb..5adebdee902557b92c829fcb094a41c4d151c693 100755 (executable)
@@ -25,11 +25,11 @@ mode2=0755
 mode3=2755
 
 
-echo test > a || framework_failure
-echo "\`a' -> \`b'" > out_installed_first || framework_failure
+echo test > a || framework_failure_
+echo "\`a' -> \`b'" > out_installed_first || framework_failure_
 echo "removed \`b'
-\`a' -> \`b'" > out_installed_second || framework_failure
-: > out_empty || framework_failure
+\`a' -> \`b'" > out_installed_second || framework_failure_
+: > out_empty || framework_failure_
 
 # destination file does not exist
 ginstall -Cv -m$mode1 a b > out || fail=1
@@ -54,22 +54,22 @@ ginstall -Cv -m$mode3 a b > out || fail=1
 compare out out_installed_second || fail=1
 
 # files are not regular files
-ln -s a c || framework_failure
-ln -s b d || framework_failure
+ln -s a c || framework_failure_
+ln -s b d || framework_failure_
 ginstall -Cv -m$mode1 c d > out || fail=1
 echo "removed \`d'
 \`c' -> \`d'" > out_installed_second_cd
 compare out out_installed_second_cd || fail=1
 
 # destination file exists but content differs
-echo test1 > a || framework_failure
+echo test1 > a || framework_failure_
 ginstall -Cv -m$mode1 a b > out || fail=1
 compare out out_installed_second || fail=1
 ginstall -Cv -m$mode1 a b > out || fail=1
 compare out out_empty || fail=1
 
 # destination file exists but content differs (same size)
-echo test2 > a || framework_failure
+echo test2 > a || framework_failure_
 ginstall -Cv -m$mode1 a b > out || fail=1
 compare out out_installed_second || fail=1
 ginstall -Cv -m$mode1 a b > out || fail=1
index 743f80efd567db42939104fbad2a4e21c3ead813..b46c4183cadb11078fce5e287b77a4048542da55 100755 (executable)
@@ -27,7 +27,7 @@ g1=1
 g2=2
 
 
-echo test > a || framework_failure
+echo test > a || framework_failure_
 echo "\`a' -> \`b'" > out_installed_first
 echo "removed \`b'
 \`a' -> \`b'" > out_installed_second
index 072297dc8b0122fd14389dff65631f14c1ac0a35..64375415bb9b52f29c96033c3774f39fe1da9a91 100755 (executable)
@@ -21,7 +21,7 @@ print_ver_ ginstall
 require_selinux_
 
 
-echo test > a || framework_failure
+echo test > a || framework_failure_
 chcon -u system_u a || skip_ "chcon doesn't work"
 
 echo "\`a' -> \`b'" > out_installed_first
index d7971797e204cc6578c8f79bc8d8be5076b10201..0f1e9fa222884811dcbaecc2ccd9ab8de9495071 100755 (executable)
@@ -21,11 +21,11 @@ print_ver_ ginstall
 
 working_umask_or_skip_
 
-cat <<EOF > b || framework_failure
+cat <<EOF > b || framework_failure_
 #!$PREFERABLY_POSIX_SHELL
 sed s/b/B/ \$1 > \$1.t && mv \$1.t \$1
 EOF
-chmod a+x b || framework_failure
+chmod a+x b || framework_failure_
 
 
 echo abc > src || fail=1
index 1dc72a71e020fcfebc9dd6f44c32da1c2480f0c3..6a123e3fb3710a0a482a91dea9b566a63d70f36e 100755 (executable)
@@ -22,7 +22,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ln
 
-touch a b || framework_failure
+touch a b || framework_failure_
 
 ln b b~ || fail=1
 ln -f --b=simple a b || fail=1
index d3bed539f709a49596536a1c27adefe199da923b..e6c9631b7c4cf3a9ed2c7384e13c67bf7941aa7e 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ln
 
-touch f || framework_failure
+touch f || framework_failure_
 
 
 ln --backup f f 2> out && fail=1
index 72d8e27341febc508ba2d1df954e166e1c5572b3..64626f46c6aa8cb44d318825b283c497032da225 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ ln
 
 # ===================================================
 # ensure -s silently overrides -L, -P
-touch a || framework_failure
+touch a || framework_failure_
 ln -L -s a symlink1 || fail=1
 ln -P -s symlink1 symlink2 || fail=1
 ln -s -L -P symlink2 symlink3 || fail=1
@@ -34,7 +34,7 @@ ls=`ls -lG hard-to-a`x
 case "$ls" in
   *'hard-to-ax') ;;
   *'hard-to-a -> '*x) fail=1 ;;
-  *) framework_failure ;;
+  *) framework_failure_ ;;
 esac
 
 # ===================================================
@@ -45,12 +45,12 @@ case "$ls" in
   *'hard-to-3 -> symlink2x') ;;
   *'hard-to-3x') fail=1 ;;
   *'hard-to-3 -> '*x) fail=1 ;;
-  *) framework_failure ;;
+  *) framework_failure_ ;;
 esac
 
 # ===================================================
 # Create a hard link to a dangling symlink.
-ln -s /no-such-dir || framework_failure
+ln -s /no-such-dir || framework_failure_
 ln -L no-such-dir hard-to-dangle 2>err && fail=1
 case `cat err` in
   *' accessing `no-such-dir'\':*) ;;
@@ -60,8 +60,8 @@ ln -P no-such-dir hard-to-dangle || fail=1
 
 # ===================================================
 # Create a hard link to a symlink to a directory.
-mkdir d || framework_failure
-ln -s d link-to-dir || framework_failure
+mkdir d || framework_failure_
+ln -s d link-to-dir || framework_failure_
 ln -L link-to-dir hard-to-dir-link 2>err && fail=1
 case `cat err` in
   *': `link-to-dir'\'': hard link not allowed for directory'*) ;;
index 51e97d197bf2cc0c8f7cc4630ddad5e1614ddaae..454c7156f8534dcca0d77a855aa26ac141d3b21b 100755 (executable)
@@ -26,60 +26,60 @@ f=tln-file
 
 # Create a simple symlink with both source and destination files
 # in current directory.
-touch $f || framework_failure
-rm -f $t || framework_failure
+touch $f || framework_failure_
+rm -f $t || framework_failure_
 ln -s $f $t || fail=1
 test -f $t || fail=1
 rm $t $f
 
 # Create a symlink with source file and explicit destination directory/file.
-touch $f || framework_failure
-rm -rf $d || framework_failure
-mkdir $d || framework_failure
+touch $f || framework_failure_
+rm -rf $d || framework_failure_
+mkdir $d || framework_failure_
 ln -s ../$f $d/$t || fail=1
 test -f $d/$t || fail=1
 rm -rf $d $f
 
 # Create a symlink with source file and destination directory.
-touch $f || framework_failure
-rm -rf $d || framework_failure
-mkdir $d || framework_failure
+touch $f || framework_failure_
+rm -rf $d || framework_failure_
+mkdir $d || framework_failure_
 ln -s ../$f $d || fail=1
 test -f $d/$f || fail=1
 rm -rf $d $f
 
 # See whether a trailing slash is followed too far.
-touch $f || framework_failure
-rm -rf $d || framework_failure
-mkdir $d $d/$f || framework_failure
+touch $f || framework_failure_
+rm -rf $d || framework_failure_
+mkdir $d $d/$f || framework_failure_
 ln $f $d/ 2> /dev/null && fail=1
 ln -s $f $d/ 2> /dev/null && fail=1
 rm -rf $d $f
 
 # Make sure we get a failure with existing dest without -f option
-touch $t || framework_failure
+touch $t || framework_failure_
 # FIXME: don't ignore the error message but rather test
 # it to make sure it's the right one.
 ln -s $t $t 2> /dev/null && fail=1
 rm $t
 
 # Make sure -sf fails when src and dest are the same
-touch $t || framework_failure
+touch $t || framework_failure_
 ln -sf $t $t 2> /dev/null && fail=1
 rm $t
 
 # Create a symlink with source file and no explicit directory
-rm -rf $d || framework_failure
-mkdir $d || framework_failure
-touch $d/$f || framework_failure
+rm -rf $d || framework_failure_
+mkdir $d || framework_failure_
+touch $d/$f || framework_failure_
 ln -s $d/$f || fail=1
 test -f $f || fail=1
 rm -rf $d $f
 
 # Create a symlink with source file and destination symlink-to-directory.
-rm -rf $d $f $ld || framework_failure
-touch $f || framework_failure
-mkdir $d || framework_failure
+rm -rf $d $f $ld || framework_failure_
+touch $f || framework_failure_
+mkdir $d || framework_failure_
 ln -s $d $ld
 ln -s ../$f $ld || fail=1
 test -f $d/$f || fail=1
@@ -87,9 +87,9 @@ rm -rf $d $f $ld
 
 # Create a symlink with source file and destination symlink-to-directory.
 # BUT use the new --no-dereference option.
-rm -rf $d $f $ld || framework_failure
-touch $f || framework_failure
-mkdir $d || framework_failure
+rm -rf $d $f $ld || framework_failure_
+touch $f || framework_failure_
+mkdir $d || framework_failure_
 ln -s $d $ld
 af=`pwd`/$f
 ln --no-dereference -fs "$af" $ld || fail=1
@@ -98,8 +98,8 @@ rm -rf $d $f $ld
 
 # Try to create a symlink with backup where the destination file exists
 # and the backup file name is a hard link to the destination file.
-touch a b || framework_failure
-ln b b~ || framework_failure
+touch a b || framework_failure_
+ln b b~ || framework_failure_
 ln -f --b=simple a b || fail=1
 
 # ===================================================
@@ -108,7 +108,7 @@ ln -f --b=simple a b || fail=1
 # This was fixed in 4.0.34.  Broken in 4.0r.
 for cmd in ln cp mv ginstall; do
   rm -rf a x a.orig
-  touch a x || framework_failure
+  touch a x || framework_failure_
   $cmd --backup=simple --suffix=.orig x a || fail=1
   test -f a.orig || fail=1
 done
index d9e9123e2096a6f3e1ff608afbe07c8e2a977694..db2b4306d4fed9c11c492a7f755b035f2924b989 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ln
 
-echo foo > a || framework_failure
-ln -s . b || framework_failure
+echo foo > a || framework_failure_
+ln -s . b || framework_failure_
 
 ln -sf a b > err 2>&1 && fail=1
 case `cat err` in
index 29238451c7de9f4c4bafb2bacfb2612f84e5fd68..4716292fd0d5616cb6d9e97135e8f4d9e95eed16 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ln
 
-touch f || framework_failure
+touch f || framework_failure_
 
 
 # Before coreutils-7.6, this would succeed on Solaris 10
index da37e311e7c86b557dc86d7c5c5ef50b8558ca13..3441ee0c560d359def512bee2f7ea1099ad3c01c 100755 (executable)
@@ -24,7 +24,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ln
 
-mkdir d || framework_failure
+mkdir d || framework_failure_
 ln -s --target-dir=d ../f || fail=1
 
 Exit $fail
index e2f8dc22a9941f96b8e5ff63c986084d81b70a27..d581d8e285300c5210c5b7e651e4b814a7ea9e85 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ ls
 
 for mon in $(seq -w 12); do
-    touch -d"+$mon month" $mon.ts || framework_failure
+    touch -d"+$mon month" $mon.ts || framework_failure_
 done
 
 
index c4762c963ae19f1a7c316d6efc09ca6114a8dd98..da6182076db7371a33595b118c33780f4d911969 100755 (executable)
@@ -55,7 +55,7 @@ for ex in '' ex=:; do
 dir:
 \e[${code}mcap_neg\e[0m
 cap_pos
-" > out_ok || framework_failure
+" > out_ok || framework_failure_
 
   compare out out_ok || fail=1
 done
index dc41e35655ebf91ade8a8d10c61daf6e1521a8ca..164b163c79bf5584b2eb633ae16639a1af9f9600 100755 (executable)
 print_ver_ ls
 
 long_name=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.foo
-touch $long_name || framework_failure
+touch $long_name || framework_failure_
 
 e='\33'
 color_code='0;31;42'
 c_pre="$e[0m$e[${color_code}m"
 c_post="$e[0m$e[K\n"
-printf "$c_pre$long_name$c_post\n" > exp || framework_failure
+printf "$c_pre$long_name$c_post\n" > exp || framework_failure_
 
 env TERM=xterm COLUMNS=80 LS_COLORS="*.foo=$color_code" TIME_STYLE=+T \
   ls -og --color=always $long_name > out || fail=1
index 8f6b279f0ba84682047d12de43c957e31662f049..b677240db05d10fbb2b3ee79ed4b9152a7aa738d 100755 (executable)
@@ -25,9 +25,9 @@ print_ver_ ls
 # Don't let a different umask perturb the results.
 umask 22
 
-mkdir d other-writable sticky || framework_failure
-chmod o+w other-writable || framework_failure
-chmod o+t sticky || framework_failure
+mkdir d other-writable sticky || framework_failure_
+chmod o+w other-writable || framework_failure_
+chmod o+t sticky || framework_failure_
 
 
 ls --color=always > out || fail=1
index 20bc1217fe982d77d49f167d735b1ac4d49f5f2c..c8691034b88553860e433c32fb2460d397d15a85 100755 (executable)
@@ -30,9 +30,9 @@ export TIME_STYLE="+norm"
 # helper to strip ls columns up to "norm" time
 qls() { sed 's/-r.*norm/norm/'; }
 
-touch exe || framework_failure
-chmod u+x exe || framework_failure
-touch nocolor || framework_failure
+touch exe || framework_failure_
+chmod u+x exe || framework_failure_
+touch nocolor || framework_failure_
 
 TCOLORS="no=7:ex=01;32"
 
@@ -58,10 +58,10 @@ LS_COLORS=$TCOLORS      ls -mFU --color nocolor exe       >> out || fail=1
 # Ensure no coloring is done unless enabled
 LS_COLORS=$TCOLORS      ls -gGU         nocolor exe | qls >> out || fail=1
 
-cat -A out > out.display || framework_failure
-mv out.display out || framework_failure
+cat -A out > out.display || framework_failure_
+mv out.display out || framework_failure_
 
-cat <<\EOF > exp || framework_failure
+cat <<\EOF > exp || framework_failure_
 ^[[0m^[[7mnorm ^[[m^[[01;32mexe^[[0m$
 ^[[7mnorm nocolor^[[0m$
 ^[[0m^[[7m^[[m^[[01;32mexe^[[0m  ^[[7mnocolor^[[0m$
index 2f722de3d34c2e6ee839d707c300d289ac7ec81c..35035febeae667e325e076e1c3b7dfde1818b4be 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-ln -s no-such-file dangle || framework_failure
-mkdir -p dir/sub || framework_failure
-ln -s dir slink-to-dir || framework_failure
-mkdir d || framework_failure
-ln -s no-such d/dangle || framework_failure
-printf '? dangle\n' > subdir_Li_exp || framework_failure
-printf 'total 0\n? dangle\n' > subdir_Ls_exp || framework_failure
+ln -s no-such-file dangle || framework_failure_
+mkdir -p dir/sub || framework_failure_
+ln -s dir slink-to-dir || framework_failure_
+mkdir d || framework_failure_
+ln -s no-such d/dangle || framework_failure_
+printf '? dangle\n' > subdir_Li_exp || framework_failure_
+printf 'total 0\n? dangle\n' > subdir_Ls_exp || framework_failure_
 
 
 # This must exit nonzero.
index 076ee7aad9ace16ff794c4b4478df9975d21701c..18cd1eaa36309f89316458f1c9e1d0dc057e85cc 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-mkdir dir || framework_failure
+mkdir dir || framework_failure_
 
 
 LC_MESSAGES=C ls -lR --dired dir > out || fail=1
index 0715d69621bd56ce9b26386f3452085dfc8a52c7..cb4922b37a4e1cda98054bf42dcd81e1115283da 100755 (executable)
 print_ver_ ls
 
 # Isolate output files from directory being listed
-mkdir dir dir/sub dir1 || framework_failure
-cd dir || framework_failure
-ln -s link link || framework_failure
-ln -s ../../dir1 sub/link-to-dir || framework_failure
+mkdir dir dir/sub dir1 || framework_failure_
+cd dir || framework_failure_
+ln -s link link || framework_failure_
+ln -s ../../dir1 sub/link-to-dir || framework_failure_
 
 # Make sure the symlink was created.
 # `ln -s link link' succeeds, but creates no file on
 # systems running some DJGPP-2.03 libc.
-ls -F link > /dev/null || framework_failure
+ls -F link > /dev/null || framework_failure_
 
 
 # When explicitly listing a broken link, the command must fail.
index e994de960655741f4372607467c64b06e06ed627..34d963311bc77d6a3a30fef90500837be3516f81 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-mkdir loop || framework_failure
-ln -s ../loop loop/sub || framework_failure
+mkdir loop || framework_failure_
+ln -s ../loop loop/sub || framework_failure_
 
-cat <<\EOF > exp-out || framework_failure
+cat <<\EOF > exp-out || framework_failure_
 loop:
 sub
 EOF
 
-cat <<\EOF > exp-err || framework_failure
+cat <<\EOF > exp-err || framework_failure_
 ls: loop/sub: not listing already-listed directory
 EOF
 
index b570fecae178f204e813e9f60eb7fc5274b534f3..7b28640de7eb1f5fc6183ce120ab1becb9f44a2f 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-touch f || framework_failure
-ln -s f slink || framework_failure
+touch f || framework_failure_
+ln -s f slink || framework_failure_
 
 
 # When listed explicitly:
index e0dd447ff50f68175ef23bddce27e3801d05c431..2e6ec03d2692ab9f36b48256f5c84021ce80b096 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-seq 2000 > b || framework_failure
-touch a || framework_failure
+seq 2000 > b || framework_failure_
+touch a || framework_failure_
 
 
 # Before coreutils-5.1.1, the following would output a space after the comma.
index a9d31f4b76bf1ae79cbb15050ab5ef8d799091dd..4a5900073a9515cfeac81deb75484f2edb205d87 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ ls
 working_umask_or_skip_
 
-touch file file1 || framework_failure
+touch file file1 || framework_failure_
 ln file1 file2 || skip_ "can't create hard link"
 code_mh='44;37'
 code_ex='01;32'
@@ -32,33 +32,33 @@ c_png=$(printf '\033[%sm' $code_png)
 
 # regular file - not hard linked
 LS_COLORS="mh=$code_mh" ls -U1 --color=always file > out || fail=1
-printf "file\n" > out_ok || framework_failure
+printf "file\n" > out_ok || framework_failure_
 compare out out_ok || fail=1
 
 # hard links
 LS_COLORS="mh=$code_mh" ls -U1 --color=always file1 file2 > out || fail=1
 printf "$c0${c_mh}file1$c0
 ${c_mh}file2$c0
-" > out_ok || framework_failure
+" > out_ok || framework_failure_
 compare out out_ok || fail=1
 
 # hard links and png (hard link coloring takes precedence)
-mv file2 file2.png || framework_failure
+mv file2 file2.png || framework_failure_
 LS_COLORS="mh=$code_mh:*.png=$code_png" ls -U1 --color=always file1 file2.png \
   > out || fail=1
 printf "$c0${c_mh}file1$c0
 ${c_mh}file2.png$c0
-" > out_ok || framework_failure
+" > out_ok || framework_failure_
 compare out out_ok || fail=1
 
 # hard links and exe (exe coloring takes precedence)
-chmod a+x file2.png || framework_failure
+chmod a+x file2.png || framework_failure_
 LS_COLORS="mh=$code_mh:*.png=$code_png:ex=$code_ex" \
   ls -U1 --color=always file1 file2.png > out || fail=1
-chmod a-x file2.png || framework_failure
+chmod a-x file2.png || framework_failure_
 printf "$c0${c_ex}file1$c0
 ${c_ex}file2.png$c0
-" > out_ok || framework_failure
+" > out_ok || framework_failure_
 compare out out_ok || fail=1
 
 # hard links and png (hard link coloring disabled => png coloring enabled)
@@ -66,7 +66,7 @@ LS_COLORS="mh=00:*.png=$code_png" ls -U1 --color=always file1 file2.png > out \
   || fail=1
 printf "file1
 $c0${c_png}file2.png$c0
-" > out_ok || framework_failure
+" > out_ok || framework_failure_
 compare out out_ok || fail=1
 
 # hard links and png (hard link coloring not enabled explicitly => png coloring)
@@ -74,7 +74,7 @@ LS_COLORS="*.png=$code_png" ls -U1 --color=always file1 file2.png > out \
   || fail=1
 printf "file1
 $c0${c_png}file2.png$c0
-" > out_ok || framework_failure
+" > out_ok || framework_failure_
 compare out out_ok || fail=1
 
 Exit $fail
index a0de6ce92b15ba72c3f3cec8aed9b9025dd22097..49521037ee9f230e5b7f263e470c899fdfbd9f16 100755 (executable)
@@ -32,8 +32,8 @@ if test x$nameless_uid = x; then
   skip_ "couldn't find a nameless UID"
 fi
 
-touch f || framework_failure
-chown $nameless_uid f || framework_failure
+touch f || framework_failure_
+chown $nameless_uid f || framework_failure_
 
 
 set -- `ls -o f` || fail=1
index 5e26114b429dabbe1ce968bffd564c2d602b533c..f61846b97367b45f6e013045590154d63b771bf1 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-mkdir -p dir/subdir || framework_failure
-touch dir/subdir/file2 || framework_failure
-ln -s f symlink || framework_failure
+mkdir -p dir/subdir || framework_failure_
+touch dir/subdir/file2 || framework_failure_
+ln -s f symlink || framework_failure_
 
-cat > exp <<\EOF || framework_failure
+cat > exp <<\EOF || framework_failure_
 dir
 exp
 out
index 4e42890deaa084e684cb74341a75005690d6aee6..677b5fdb226c7f75cf7e704281b7d2de96d7002f 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-mkdir x y a b c a/1 a/2 a/3 || framework_failure
-touch f a/1/I a/1/II || framework_failure
+mkdir x y a b c a/1 a/2 a/3 || framework_failure_
+touch f a/1/I a/1/II || framework_failure_
 
 
 # This first example is from Andreas Schwab's bug report.
index f546c9ed0b899d2c203c37f68b22aac9219bc0f9..05d2a039fbff7ba78586390b2911fe0fc47a942d 100755 (executable)
@@ -21,9 +21,9 @@ print_ver_ ls touch
 
 date=1998-01-15
 
-touch -d "$date" c || framework_failure
-touch -d "$date" a || framework_failure
-touch -d "$date" b || framework_failure
+touch -d "$date" c || framework_failure_
+touch -d "$date" a || framework_failure_
+touch -d "$date" b || framework_failure_
 
 
 ls -1t a b c > out || fail=1
index dfa2dd555ee48c5cabeff0edf8d809135c2d73ad..8ee94344f2797a82539d9f591bc9216909301be2 100755 (executable)
@@ -27,18 +27,18 @@ print_ver_ ls
 # Skip this test unless "." is on a file system with useful d_type info.
 # FIXME: This uses "ls -p" to decide whether to test "ls" with other options,
 # but if ls's d_type code is buggy then "ls -p" might be buggy too.
-mkdir -p c/d || framework_failure
-chmod a-x c || framework_failure
+mkdir -p c/d || framework_failure_
+chmod a-x c || framework_failure_
 if test "X`ls -p c 2>&1`" != Xd/; then
   skip_ "'.' is not on a suitable file system for this test"
 fi
 
-mkdir d || framework_failure
-ln -s / d/s || framework_failure
-chmod 600 d || framework_failure
+mkdir d || framework_failure_
+ln -s / d/s || framework_failure_
+chmod 600 d || framework_failure_
 
-mkdir -p e/a2345 e/b || framework_failure
-chmod 600 e || framework_failure
+mkdir -p e/a2345 e/b || framework_failure_
+chmod 600 e || framework_failure_
 
 
 ls --file-type d > out || fail=1
index 3ce94135080f3b6df5f9ca93c970cdd8161f04d3..5a22c7bf9ec27c6cee578520470edac0cde92f46 100755 (executable)
@@ -21,9 +21,9 @@
 print_ver_ ls
 skip_if_root_
 
-mkdir d || framework_failure
-ln -s / d/s || framework_failure
-chmod 600 d || framework_failure
+mkdir d || framework_failure_
+ln -s / d/s || framework_failure_
+chmod 600 d || framework_failure_
 
 
 ls -Log d > out
index 21f5c1268104c9c760e583898324f73af0866ffb..ab2011925c112932c61252e215ba68cae37c0023 100755 (executable)
@@ -20,9 +20,9 @@
 print_ver_ ls
 require_strace_ stat
 
-touch x || framework_failure
-chmod a+x x || framework_failure
-ln -s x link-to-x || framework_failure
+touch x || framework_failure_
+chmod a+x x || framework_failure_
+ln -s x link-to-x || framework_failure_
 
 
 # ls from coreutils 6.9 would unnecessarily stat a symlink in an unusual case:
index b74e8d172b288a58a92e8d3e160831b4d69d852a..d70e4cd7b27b083930072c7fccd6bc52003ca673 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-mkdir dir || framework_failure
-ln -s dir symlink || framework_failure
+mkdir dir || framework_failure_
+ln -s dir symlink || framework_failure_
 
 set `ls -l symlink/`
 
index 1bd152acb04aefd40f971b2999319d02851569f5..7a451f54b134d9d316a6456d3178861de345bfe3 100755 (executable)
@@ -19,9 +19,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ ls
 
-mkdir subdir || framework_failure
-touch subdir/b || framework_failure
-touch subdir/a || framework_failure
+mkdir subdir || framework_failure_
+touch subdir/b || framework_failure_
+touch subdir/a || framework_failure_
 
 
 # Coreutils 6.8 and 6.9 would output this in the wrong order.
index 4e36eceda4c9d13d0d856c4050e021d5307b461b..0f367ef897b1fe8ef4679255199ba305bdc4441c 100755 (executable)
@@ -22,8 +22,8 @@ require_root_
 require_selinux_
 skip_if_mcstransd_is_running_
 
-mkdir -p d/sub/s2 || framework_failure
-touch f g d/sub/1 d/sub/2 || framework_failure
+mkdir -p d/sub/s2 || framework_failure_
+touch f g d/sub/1 d/sub/2 || framework_failure_
 
 
 # Set to a specified context.
index d5e4fd627445a8dd70523788d971b042caffa614..a721795267a3eaa8f0dbad59325f0ed2827ca959 100755 (executable)
@@ -31,7 +31,7 @@ test -s out && fail=1
 env -u a -i -u a -- > out || fail=1
 test -s out && fail=1
 env -i -- a=b > out || fail=1
-echo a=b > exp || framework_failure
+echo a=b > exp || framework_failure_
 compare exp out || fail=1
 
 # These tests verify exact status of internal failure.
@@ -62,20 +62,20 @@ fi
 
 ENV_TEST1=a
 export ENV_TEST1
-: >out || framework_failure
+: >out || framework_failure_
 env ENV_TEST2= > all || fail=1
-grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
 env -u ENV_TEST1 ENV_TEST3=c > all || fail=1
-grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
 env ENV_TEST1=b > all || fail=1
-grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
 env ENV_TEST2= env > all || fail=1
-grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
 env -u ENV_TEST1 ENV_TEST3=c env > all || fail=1
-grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
 env ENV_TEST1=b env > all || fail=1
-grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure
-cat <<EOF >exp || framework_failure
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
+cat <<EOF >exp || framework_failure_
 ENV_TEST1=a
 ENV_TEST2=
 ENV_TEST3=c
@@ -88,12 +88,12 @@ EOF
 compare exp out || fail=1
 
 # PATH modifications affect exec.
-mkdir unlikely_name || framework_failure
-cat <<EOF > unlikely_name/also_unlikely || framework_failure
+mkdir unlikely_name || framework_failure_
+cat <<EOF > unlikely_name/also_unlikely || framework_failure_
 #!/bin/sh
 echo pass
 EOF
-chmod +x unlikely_name/also_unlikely || framework_failure
+chmod +x unlikely_name/also_unlikely || framework_failure_
 env also_unlikely && fail=1
 test x`PATH=$PATH:unlikely_name env also_unlikely` = xpass || fail=1
 test x`env PATH="$PATH":unlikely_name also_unlikely` = xpass || fail=1
@@ -107,7 +107,7 @@ export PATH
 # '/bin/sh -i', rather than '/bin/sh -- -i', which doesn't do what we want.
 # Avoid the issue by using an executable rather than a script.
 # Test -u, rather than -i, to minimize PATH problems.
-ln -s "$abs_top_builddir/src/echo" ./-u || framework_failure
+ln -s "$abs_top_builddir/src/echo" ./-u || framework_failure_
 case `env -u echo echo good` in
   good) ;;
   *) fail=1 ;;
@@ -124,18 +124,18 @@ esac
 # After options have ended, the first argument not containing = is a program.
 env a=b -- true
 test $? = 127 || fail=1
-ln -s "$abs_top_builddir/src/echo" ./-- || framework_failure
+ln -s "$abs_top_builddir/src/echo" ./-- || framework_failure_
 case `env a=b -- true || echo fail` in
   true) ;;
   *) fail=1 ;;
 esac
 
 # No way to directly invoke program name containing =.
-cat <<EOF >./c=d || framework_failure
+cat <<EOF >./c=d || framework_failure_
 #!/bin/sh
 echo pass
 EOF
-chmod +x c=d || framework_failure
+chmod +x c=d || framework_failure_
 test "x`env c=d echo fail`" = xfail || fail=1
 test "x`env -- c=d echo fail`" = xfail || fail=1
 test "x`env ./c=d echo fail`" = xfail || fail=1
index b5b6418ce40bde553d94e9ec2b36e3b4ef406e73..2480e72818629e779d77bede0da16fbe10b08615 100755 (executable)
@@ -43,12 +43,12 @@ test $? = 125 || fail=1
 test -s out && fail=1
 
 # Test env -0 on a one-variable environment.
-printf 'a=b\nc=\0' > exp || framework_failure
+printf 'a=b\nc=\0' > exp || framework_failure_
 env -i -0 "$(printf 'a=b\nc=')" > out || fail=1
 compare exp out || fail=1
 
 # Test printenv -0 on particular values.
-printf 'b\nc=\0' > exp || framework_failure
+printf 'b\nc=\0' > exp || framework_failure_
 env "$(printf 'a=b\nc=')" printenv -0 a > out || fail=1
 compare exp out || fail=1
 env -u a printenv -0 a > out
index 6f3617347db359c0768734b08f8713dc6bfbb0d9..4d424c0951186364c51b544cf787641957bccb08 100755 (executable)
@@ -19,9 +19,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ fmt
 
-printf '%2030s\n' ' '|sed 's/../ y/g' > in || framework_failure
+printf '%2030s\n' ' '|sed 's/../ y/g' > in || framework_failure_
 
-cat <<\EOF > exp || framework_failure
+cat <<\EOF > exp || framework_failure_
  y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
  y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
  y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
index 7217904e22f49b21ef9509b31acd930ae3d61a31..468aee206cccabcb64c124baa1e6c2c99e12a402 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ head
 
-echo abc > in || framework_failure
+echo abc > in || framework_failure_
 
 (head -c1; head -c1) < in > out || fail=1
 case "`cat out`" in
index 222755adef5dc615813c0081ce6b415a20a44326..79e2a43e09a0173f7be3eb3dabb77e3916c20130 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ head
 
-(echo a; echo b) > in || framework_failure
+(echo a; echo b) > in || framework_failure_
 
 (head -n 1 >/dev/null; cat) < in > out || fail=1
 cat <<EOF > exp
index 241780893e9600f1fefa57f60823eb4458b595de..333be75355391c54804733eb35bd850611235b70 100755 (executable)
@@ -32,15 +32,15 @@ u1='1998-01-14 11:00'
 u2='1998-01-14 12:00'
 u3='1998-01-14 13:00'
 
-touch -m -d "$t3" a || framework_failure
-touch -m -d "$t2" b || framework_failure
-touch -m -d "$t1" c || framework_failure
+touch -m -d "$t3" a || framework_failure_
+touch -m -d "$t2" b || framework_failure_
+touch -m -d "$t1" c || framework_failure_
 
-touch -a -d "$u3" c || framework_failure
-touch -a -d "$u2" b || framework_failure
+touch -a -d "$u3" c || framework_failure_
+touch -a -d "$u2" b || framework_failure_
 # Make sure A has ctime at least 1 second more recent than C's.
 sleep 2
-touch -a -d "$u1" a || framework_failure
+touch -a -d "$u1" a || framework_failure_
 
 
 # A has ctime more recent than C.
@@ -52,7 +52,7 @@ test "$*" = 'a c' || fail=1
 sleep 2
 
 # Create a link, updating c's ctime.
-ln c d || framework_failure
+ln c d || framework_failure_
 
 # Before we go any further, verify that touch's -m option works.
 set -- `ls --full -l a`
@@ -69,7 +69,7 @@ have been $t3.
 EOF
   #`
   ls --full -l a
-  framework_failure
+  framework_failure_
   ;;
 esac
 
index f63a28ecd9b6284bcadb9cd67bfa002827811350..1212381df72b66e3e4ed72b9d5bb18fef9cd353a 100755 (executable)
@@ -74,7 +74,7 @@ if test x`nice -n -1 nice 2> /dev/null` = x0 ; then
   # unprivileged user - warn about failure to change
   nice -n -1 true 2> err || fail=1
   test -s err || fail=1
-  mv err exp || framework_failure
+  mv err exp || framework_failure_
   nice --1 true 2> err || fail=1
   compare exp err || fail=1
   # Failure to write advisory message is fatal.  Buggy through coreutils 8.0.
index 6efe85385343b7e9deac0793b826e32c2ad4e529..2aa210674e056b21928d5893fe9af4f29f18d084 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ od
 
-echo abcdefg > in || framework_failure
+echo abcdefg > in || framework_failure_
 
 
 (od -An -N3 -c; od -An -N3 -c) < in > out
index 437bd87da43e27cc43d42469ee84aa619d783e83..0daea12d159b1026f7152d4d1b4b0a97752e4313 100755 (executable)
@@ -29,7 +29,7 @@ export LC_ALL=C
 # on x86: sometimes there was no space between the columns.
 
 set x $(echo aaaabaaa | tr ab '\376\377' | od -t fF) ||
-  framework_failure
+  framework_failure_
 case "$*" in
 *0-*) fail=1;;
 esac
@@ -38,7 +38,7 @@ case $3,$4 in
 esac
 
 set x $(echo aaaaaaaabaaaaaaa | tr ab '\376\377' | od -t fD) ||
-  framework_failure
+  framework_failure_
 case "$*" in
 *0-*) fail=1;;
 esac
@@ -47,7 +47,7 @@ case $3,$4 in
 esac
 
 set x $(echo aaaaaaaaaaaaaaaabaaaaaaaaaaaaaaa | tr ab '\376\377' | od -t fL) ||
-  framework_failure
+  framework_failure_
 case "$*" in
 *0-*) fail=1;;
 esac
index 30af78f9cbd0799009674518bd022ef0a4024cd7..4f86987689ac530fb8a141bf613594115acce6ee 100755 (executable)
@@ -22,8 +22,8 @@ print_ver_ od
 
 # Choose 48 bytes for the input, as that is lcm for 1, 2, 4, 8, 12, 16;
 # we don't anticipate any other native object size on modern hardware.
-seq 19 > in || framework_failure
-test `wc -c < in` -eq 48 || framework_failure
+seq 19 > in || framework_failure_
+test `wc -c < in` -eq 48 || framework_failure_
 
 
 list='a c dC dS dI dL oC oS oI oL uC uS uI uL xC xS xI xL fF fD fL'
index 4936109d8225face2f66e6a7630e62fb3c0a8b66..b66269faf9e8bc6d96cd7a159ed99ca4558d3c33 100755 (executable)
@@ -23,7 +23,7 @@ print_ver_ od
 od -t x8 /dev/null >/dev/null ||
   skip_ "od lacks support for 8-byte quantities"
 
-echo abcdefgh |tr -d '\n' > in || framework_failure
+echo abcdefgh |tr -d '\n' > in || framework_failure_
 
 
 od -An -t x8 in > out-raw || fail=1
index 91d8777c3dcbc2271a161904d8ba957c1f8351e2..23649d3bb051eb4c2b51c3b7413e20f9d4053f37 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ pathchk
 skip_if_root_
 
-touch file || framework_failure
+touch file || framework_failure_
 
 
 # This should exit nonzero.  Before 2.0.13, it gave a diagnostic,
index 607914c10d1cd4d710f978cd2b7165490b07b63a..a13a139c9ba17b772503a0c838f40eef8ea88824 100755 (executable)
@@ -23,7 +23,7 @@ print_ver_ printenv
 # printenv as a builtin, so we must invoke it via "env".
 # But beware of $_, set by many shells to the last command run.
 # Also, filter out LD_PRELOAD, which is set when running under valgrind.
-env | grep -Ev '^(_|LD_PRELOAD=)' > exp || framework_failure
+env | grep -Ev '^(_|LD_PRELOAD=)' > exp || framework_failure_
 env -- printenv | grep -Ev '^(_|LD_PRELOAD=)' > out || fail=1
 compare exp out || fail=1
 
@@ -38,7 +38,7 @@ fi
 env -- printenv ENV_TEST > out
 test $? = 1 || fail=1
 test -s out && fail=1
-echo a > exp || framework_failure
+echo a > exp || framework_failure_
 ENV_TEST=a env -- printenv ENV_TEST > out || fail=1
 compare exp out || fail=1
 
@@ -46,7 +46,7 @@ compare exp out || fail=1
 ENV_TEST1=a ENV_TEST2=b env -- printenv ENV_TEST2 ENV_TEST1 ENV_TEST2 > out \
   || fail=1
 ENV_TEST1=a ENV_TEST2=b env -- printenv ENV_TEST1 ENV_TEST2 >> out || fail=1
-cat <<EOF > exp || framework_failure
+cat <<EOF > exp || framework_failure_
 b
 a
 b
@@ -60,7 +60,7 @@ ENV_TEST1=a env -- printenv ENV_TEST2 ENV_TEST1 > out
 test $? = 1 || fail=1
 ENV_TEST1=a env -- printenv ENV_TEST1 ENV_TEST2 >> out
 test $? = 1 || fail=1
-cat <<EOF > exp || framework_failure
+cat <<EOF > exp || framework_failure_
 a
 a
 EOF
@@ -68,7 +68,7 @@ compare exp out || fail=1
 
 # Non-standard environment variable name.  Shells won't create it, but
 # env can, and printenv must be able to deal with it.
-echo b > exp || framework_failure
+echo b > exp || framework_failure_
 env -- -a=b printenv -- -a > out || fail=1
 compare exp out || fail=1
 
index 0f412d172721e4af47f97d82b6b560748c5524cd..d4f8d0a249d0d7f0bae3e5bedadd1bf7bbddd848 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ ptx
 # Using a long file name makes an abort more likely.
 # Even with no file name, valgrind detects the buffer overrun.
 f=01234567890123456789012345678901234567890123456789
-touch $f empty || framework_failure
+touch $f empty || framework_failure_
 
 
 # Specifying a regular expression ending in a lone backslash
index c9004932045dbba32c448679cd8891ed5c1b7cee..708401ff277317a3fbd863c7f770aca39941d80e 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ pwd
 
-mkdir -p a/b || framework_failure
-ln -s a/b c || framework_failure
+mkdir -p a/b || framework_failure_
+ln -s a/b c || framework_failure_
 base=$(env -- pwd)
 
 # Remove any logical paths from $PWD.
-cd "$base" || framework_failure
-test "x$PWD" = "x$base" || framework_failure
+cd "$base" || framework_failure_
+test "x$PWD" = "x$base" || framework_failure_
 
 # Enter a logical directory.
-cd c || framework_failure
+cd c || framework_failure_
 test "x$PWD" = "x$base/c" || skip_ "cd does not properly update \$PWD"
 
 env -- pwd -L > out || fail=1
index 37d40928d3961796e8d5c75e71d4fe498b989731..1c50d6a4ffd720e07926b1e2a19834838b7e2cc1 100755 (executable)
@@ -25,11 +25,11 @@ cwd=$("$abs_top_builddir/src/pwd")
 # two different times with no actual loop.  In addition, arrange
 # so that the second and fourth calls to readlink operate on S.
 
-ln -s s p        || framework_failure
-ln -s d s        || framework_failure
-mkdir d          || framework_failure
-echo 2 > d/2     || framework_failure
-ln -s ../s/2 d/1 || framework_failure
+ln -s s p        || framework_failure_
+ln -s d s        || framework_failure_
+mkdir d          || framework_failure_
+echo 2 > d/2     || framework_failure_
+ln -s ../s/2 d/1 || framework_failure_
 
 # With coreutils-6.9, this would fail with ELOOP.
 readlink -v -e p/1 > out || fail=1
@@ -38,7 +38,7 @@ echo "$cwd/d/2" > exp || fail=1
 compare out exp || fail=1
 
 # Construct a real loop and make sure readlink still detects it.
-ln -sf ../s/1 d/2 || framework_failure
+ln -sf ../s/1 d/2 || framework_failure_
 readlink -v -e p/1 2> out && fail=1
 readlink_msg=$(cat out)
 case $readlink_msg in
@@ -48,13 +48,13 @@ esac
 symlink_loop_msg=${readlink_msg#'readlink: p/1: '}
 
 # Exercise the hash table code.
-ln -nsf ../s/3 d/2 || framework_failure
-ln -nsf ../p/4 d/3 || framework_failure
-ln -nsf ../p/5 d/4 || framework_failure
-ln -nsf ../p/6 d/5 || framework_failure
-ln -nsf ../p/7 d/6 || framework_failure
-ln -nsf ../p/8 d/7 || framework_failure
-echo x > d/8       || framework_failure
+ln -nsf ../s/3 d/2 || framework_failure_
+ln -nsf ../p/4 d/3 || framework_failure_
+ln -nsf ../p/5 d/4 || framework_failure_
+ln -nsf ../p/6 d/5 || framework_failure_
+ln -nsf ../p/7 d/6 || framework_failure_
+ln -nsf ../p/8 d/7 || framework_failure_
+echo x > d/8       || framework_failure_
 readlink -v -e p/1 > out || fail=1
 echo "$cwd/d/8" > exp || fail=1
 compare out exp || fail=1
@@ -62,7 +62,7 @@ compare out exp || fail=1
 # A trivial loop
 ln -s loop loop
 readlink -v -e loop 2> out && fail=1
-echo "readlink: loop: $symlink_loop_msg" > exp || framework_failure
+echo "readlink: loop: $symlink_loop_msg" > exp || framework_failure_
 compare out exp || fail=1
 
 Exit $fail
index dd2c3e65e5803f7b22963a9313ea0841f6164efa..7a4825680cc35785c166325b996bfdf35373e77b 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ runcon
 
 diag='runcon: runcon may be used only on a SELinux kernel'
-echo "$diag" > exp || framework_failure
+echo "$diag" > exp || framework_failure_
 
 
 # This test works even on systems without SELinux.
index df3cb3ec13405c47df9ac86c5215b4f31f0d22ac..f5961be73c341faf3a59863e9325118826b569d6 100755 (executable)
@@ -24,8 +24,8 @@ require_selinux_
 skip_if_mcstransd_is_running_
 
 # Create a regular file, dir, fifo.
-touch f || framework_failure
-mkdir d s1 s2 || framework_failure
+touch f || framework_failure_
+mkdir d s1 s2 || framework_failure_
 mkfifo_or_skip_ p
 
 
index 9930b3afbf3dd794a8830be44055d254eaf4ed4c..fd9532055c5b13895d6be966764d1d50d4062a27 100755 (executable)
@@ -22,14 +22,14 @@ print_ver_ shred
 
 # shred a single letter, zero length file which should result in
 # 3 random passes and a single rename.
-touch f || framework_failure
+touch f || framework_failure_
 echo "\
 shred: f: pass 1/3 (random)...
 shred: f: pass 2/3 (random)...
 shred: f: pass 3/3 (random)...
 shred: f: removing
 shred: f: renamed to 0
-shred: f: removed" > exp || framework_failure
+shred: f: removed" > exp || framework_failure_
 
 
 shred -v -u f 2>out || fail=1
index 0b89f00eaa26d8972ccb06a0f5b8f5bf52ee084f..4abf8369790e88ee5b8a1ab2578c5de15bd9599f 100755 (executable)
@@ -24,8 +24,8 @@ skip_if_root_
 # In this case, shred would try to rename the file 256^10 times
 # before terminating.
 file=0123456789
-touch $file || framework_failure
-chmod u-w $file || framework_failure
+touch $file || framework_failure_
+chmod u-w $file || framework_failure_
 
 
 # This would take so long that it appears to infloop
index 10d28584618357ce36fa3b100f765c494515cac3..8adb1d4e4ee7efc2507d855d333a01905e5d1b73 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ shuf
 getlimits_
 
-seq 100 > in || framework_failure
+seq 100 > in || framework_failure_
 
 shuf in >out || fail=1
 
@@ -49,7 +49,7 @@ seq 1860 | shuf > /dev/null || fail=1
 
 # coreutils-6.12 and earlier would output a newline terminator, not \0.
 shuf --zero-terminated -i 1-1 > out || fail=1
-printf '1\0' > exp || framework_failure
+printf '1\0' > exp || framework_failure_
 cmp out exp || { fail=1; echo "missing NUL terminator?" 1>&2; }
 
 # Ensure shuf -n operates efficiently for small n. Before coreutils-8.13
index e6ae12feef247a120ab781e4034377e3323ea1bb..6a61a14623fa5fc5ae0bdf31df93a8dcfd5484c9 100755 (executable)
@@ -34,7 +34,7 @@ for (my $i=0; $i < $num_lines; $i++)
       printf "%c", 32 + rand(94);
     }
     print "\n";
-}' > in || framework_failure
+}' > in || framework_failure_
 
 # We need to generate a lot of data for sort to show a noticeable
 # improvement in performance. Sorting it in PERL may take awhile.
@@ -44,7 +44,7 @@ open (FILE, "<in");
 my @list = <FILE>;
 print sort(@list);
 close (FILE);
-' > exp || framework_failure
+' > exp || framework_failure_
 
 time sort in > out || fail=1
 
index ab0c0909f3c5f1ae403ad0d99577c314e75f13f0..9d1eb6065ef19d46d38787e7469c1bf06db93091 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ sort
 
-seq -w 2000 > exp || framework_failure
-tac exp > in || framework_failure
+seq -w 2000 > exp || framework_failure_
+tac exp > in || framework_failure_
 
 # This should force the use of temp files
 sort -S 1k in > out || fail=1
index 0bc46dce8b3b62933b0af59adcb49ab9a9e16826..ddd4f2d2c24384f93819f194a3660f58e60fea38 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ sort
 very_expensive_
 
-cat <<\EOF >compress || framework_failure
+cat <<\EOF >compress || framework_failure_
 #!/bin/sh
 tr 41 14 || exit
 touch ok
index de0457300f5d82a6c3480552ed31a859633960ce..60c8af7b37c535cf860ad936ed652a66a983f2b1 100755 (executable)
@@ -27,7 +27,7 @@ insize=$(stat -c %s - <in) || fail=1
 # This compressor's behavior is adjustable via environment variables.
 export PRE_COMPRESS=
 export POST_COMPRESS=
-cat <<\EOF >compress || framework_failure
+cat <<\EOF >compress || framework_failure_
 #!/bin/sh
 eval "$PRE_COMPRESS"
 tr 41 14 || exit
index 43881ac2e271b967162075c9d2a644a33fe21060..42db01eb16ce2b73571f6e2a0107f04b8c179add 100755 (executable)
@@ -24,7 +24,7 @@ print_ver_ sort
   || skip_ 'fd-limited sort failed; are you running under valgrind?'
 
 for i in $(seq 31); do
-  echo $i | tee -a in > __test.$i || framework_failure
+  echo $i | tee -a in > __test.$i || framework_failure_
 done
 
 
index ec9d492288b3f260eb9a24355a78503430b19187..2de14f4f7d204e1a711687eab78e6865d813b28b 100755 (executable)
@@ -21,7 +21,7 @@
 print_ver_ sort
 require_ulimit_
 
-mkdir in err || framework_failure
+mkdir in err || framework_failure_
 
 
 for i in `seq 17`; do
index 175b4bd103f999886f94fca32ae00116321f5062..e39dfa2dac9cac228095732dfa2821e31c7d034d 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ sort
 
-seq 100 > in || framework_failure
+seq 100 > in || framework_failure_
 
 
 sort --random-sort in > out || fail=1
index 9378979f8a2b2d4ab469c19aed1b03534b5f2bd3..9a950ba6495105c9463330832914d1b4b907c6e3 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ stat
 
-printf -- '-\n' > exp || framework_failure
-touch f || framework_failure
+printf -- '-\n' > exp || framework_failure_
+touch f || framework_failure_
 
 stat --format=%n - < f > out || fail=1
 stat -f - < f && fail=1
index 3209792aa79de0d185983701abd78781fa1245a0..c317855d675d08182d88ee3af28b82a75f712ad6 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ stat
 
-touch file || framework_failure
-mkdir dir || framework_failure
-ln -s file link1 || framework_failure
-ln -s dir link2 || framework_failure
+touch file || framework_failure_
+mkdir dir || framework_failure_
+ln -s file link1 || framework_failure_
+ln -s dir link2 || framework_failure_
 
-cat <<EOF > exp || framework_failure
+cat <<EOF > exp || framework_failure_
 link1
 symbolic link
 directory
index daace67e764b0b2e79640e3fef0686f8dffd0553..2dd70d74a5a50276ba8f64b3262bbcf1d72b09a0 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ tee
 
-echo line >sample || framework_failure
-nums=`seq 9` || framework_failure
+echo line >sample || framework_failure_
+nums=`seq 9` || framework_failure_
 
 for n in 0 $nums; do
         files=`seq $n`
index 65203480753a09a808261dbfed7a68ee505b75a5..e7dfb38b32a405b7a03101ab9404b2d47b1565ab 100755 (executable)
@@ -24,8 +24,8 @@ require_root_
 group_num=$(id -g $NON_ROOT_USERNAME)
 
 # Create a file owned by root, and writable by $NON_ROOT_USERNAME.
-echo > root-owned || framework_failure
-chgrp +$group_num . root-owned || framework_failure
+echo > root-owned || framework_failure_
+chgrp +$group_num . root-owned || framework_failure_
 chmod g+w root-owned
 
 # Ensure that the current directory is searchable by $NON_ROOT_USERNAME.
index 1f4b4954403d5bce3d9e3b431e08ff31ae20914e..49df3b4b0e45ef92d1976465aa81f25faaa0f63f 100755 (executable)
@@ -19,9 +19,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ wc
 
-echo 2 > 2b || framework_failure
-echo 2 words > 2w || framework_failure
-printf '2b\n2w\n' |tr '\n' '\0' > names || framework_failure
+echo 2 > 2b || framework_failure_
+echo 2 words > 2w || framework_failure_
+printf '2b\n2w\n' |tr '\n' '\0' > names || framework_failure_
 
 
 wc --files0-from=names > out || fail=1
index 05437d03705384bcc56985b96230bbd5d4268dfe..2529910dc0b1427697217d8e1aa64af127fac2c6 100755 (executable)
@@ -22,7 +22,7 @@
 print_ver_ cp mv ginstall
 
 # Skip this test if cp was built without xattr support:
-touch src dest || framework_failure
+touch src dest || framework_failure_
 cp --preserve=xattr -n src dest \
   || skip_ "coreutils built without xattr support"
 
@@ -30,7 +30,7 @@ cp --preserve=xattr -n src dest \
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 b_other="$other_partition_tmpdir/b"
-rm -f "$b_other" || framework_failure
+rm -f "$b_other" || framework_failure_
 
 # testing xattr name-value pair
 xattr_name="user.foo"
@@ -38,9 +38,9 @@ xattr_value="bar"
 xattr_pair="$xattr_name=\"$xattr_value\""
 
 # create new file and check its xattrs
-touch a || framework_failure
+touch a || framework_failure_
 getfattr -d a >out_a || skip_ "failed to get xattr of file"
-grep -F "$xattr_pair" out_a && framework_failure
+grep -F "$xattr_pair" out_a && framework_failure_
 
 # try to set user xattr on file
 setfattr -n "$xattr_name" -v "$xattr_value" a >out_a \
@@ -71,7 +71,7 @@ getfattr -d d >out_d || skip_ "failed to get xattr of file"
 grep -F "$xattr_pair" out_d || fail=1
 
 # test if --preserve=xattr works even for files without write access
-chmod a-w a || framework_failure
+chmod a-w a || framework_failure_
 rm -f e
 cp --preserve=xattr a e || fail=1
 getfattr -d e >out_e || skip_ "failed to get xattr of file"
@@ -82,9 +82,9 @@ src_perm=$(stat --format=%a a)
 dst_perm=$(stat --format=%a e)
 test "$dst_perm" = "$src_perm" || fail=1
 
-chmod u+w a || framework_failure
+chmod u+w a || framework_failure_
 
-rm b || framework_failure
+rm b || framework_failure_
 
 # install should never preserve xattr
 ginstall a b || fail=1
@@ -105,12 +105,12 @@ EOF
 
 # try to set user xattr on file on other partition
 test_mv=1
-touch "$b_other" || framework_failure
+touch "$b_other" || framework_failure_
 setfattr -n "$xattr_name" -v "$xattr_value" "$b_other" >out_a \
   || test_mv=0
 getfattr -d "$b_other" >out_b || test_mv=0
 grep -F "$xattr_pair" out_b || test_mv=0
-rm -f "$b_other" || framework_failure
+rm -f "$b_other" || framework_failure_
 
 if test $test_mv -eq 1; then
   # mv should preserve xattr when copying content from one partition to another
index 0adfbea6ae4f351392fe61d92c16a401ab5ec43f..76a6911abc3fbf2e56e9d2d79980813bb9fed6cd 100755 (executable)
@@ -22,9 +22,9 @@
 print_ver_ mkdir
 skip_if_root_
 
-mkdir no-access || framework_failure
-mkdir no-acce2s || framework_failure
-mkdir -p no-acce3s/d || framework_failure
+mkdir no-access || framework_failure_
+mkdir no-acce2s || framework_failure_
+mkdir -p no-acce3s/d || framework_failure_
 
 p=`pwd`
 (cd no-access && chmod 0 . && mkdir -p "$p/a/b" u/v) 2> /dev/null && fail=1
index 85886b1ee4143ed5727e09170b6da4e1c8bf3457..2af786d5d133c96643d100898ca0b23d6ce1542b 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mkdir
 
-ln -s . slink || framework_failure
+ln -s . slink || framework_failure_
 
 mkdir -p slink/x || fail=1
 test -d x || fail=1
index 72d5a2ba2c95ac1afdd34783e38d93762aed59e5..aa1f24d83713aae8800ec4495a26be2d5f9679d3 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ mkdir
 skip_if_setgid_
 
-mkdir -m 700 e-dir || framework_failure
+mkdir -m 700 e-dir || framework_failure_
 
 
 # Make sure `mkdir -p existing-dir' succeeds
index 669868d3400fe01425b262ddb04a7caf3a5e9b6b..75ae27e0ff15ac6f85395fdd7f563648d5e9f3f0 100755 (executable)
@@ -29,9 +29,9 @@ grep '^#define USE_ACL 1' $CONFIG_HEADER > /dev/null ||
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
-touch file || framework_failure
+touch file || framework_failure_
 t1=$other_partition_tmpdir/t1
-touch $t1 || framework_failure
+touch $t1 || framework_failure_
 
 skip_partition=none
 # Ensure that setfacl and getfacl work on this file system.
@@ -45,23 +45,23 @@ test $skip_partition != none &&
 
 # move the access acl of a file
 mv file "$other_partition_tmpdir" || fail=1
-acl2=`cd "$other_partition_tmpdir" && getfacl file` || framework_failure
+acl2=`cd "$other_partition_tmpdir" && getfacl file` || framework_failure_
 test "$acl1" = "$acl2" || fail=1
 
 # move the access acl of a directory
-mkdir dir || framework_failure
-setfacl -m user:bin:rw dir || framework_failure
-acl1=`getfacl dir` || framework_failure
+mkdir dir || framework_failure_
+setfacl -m user:bin:rw dir || framework_failure_
+acl1=`getfacl dir` || framework_failure_
 mv dir "$other_partition_tmpdir" || fail=1
-acl2=`cd "$other_partition_tmpdir" && getfacl dir` || framework_failure
+acl2=`cd "$other_partition_tmpdir" && getfacl dir` || framework_failure_
 test "$acl1" = "$acl2" || fail=1
 
 # move the default acl of a directory
-mkdir dir2 || framework_failure
-setfacl -d -m user:bin:rw dir2 || framework_failure
-acl1=`getfacl dir2` || framework_failure
+mkdir dir2 || framework_failure_
+setfacl -d -m user:bin:rw dir2 || framework_failure_
+acl1=`getfacl dir2` || framework_failure_
 mv dir2 "$other_partition_tmpdir" || fail=1
-acl2=`cd "$other_partition_tmpdir" && getfacl dir2` || framework_failure
+acl2=`cd "$other_partition_tmpdir" && getfacl dir2` || framework_failure_
 test "$acl1" = "$acl2" || fail=1
 
 Exit $fail
index dfc2cbf67406cba6be7984f69029a7ca3449e608..2a3ca966bd9fb7a820f2ca700e6313c1b877027b 100755 (executable)
@@ -30,8 +30,8 @@ require_strace_ unlink
 #   $ strace -qe unlink ./mv -T s1 s2
 #   $
 
-ln -s t1 s1 || framework_failure
-ln -s t2 s2 || framework_failure
+ln -s t1 s1 || framework_failure_
+ln -s t2 s2 || framework_failure_
 
 
 strace -qe unlink mv -T s1 s2 > out 2>&1 || fail=1
index e69d166fc2c8f578d5a432ad437bcc9590a54f9f..0bb229f0b15885b8cd92eaf52858509166be25b5 100755 (executable)
@@ -28,8 +28,8 @@ require_strace_ unlink
 #   $ rm -f a b b2; touch a b; ln b b2; strace -e unlink ./mv a b
 #   $
 
-touch a b || framework_failure
-ln b b2 || framework_failure
+touch a b || framework_failure_
+ln b b2 || framework_failure_
 
 
 strace -qe unlink mv a b > out 2>&1 || fail=1
index c5725d65c9c4785294d0b3262f08d7a265516974..3026365dddab80f2129e76552130edce485f6cb6 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-mkdir A B || framework_failure
-touch X Y || framework_failure
+mkdir A B || framework_failure_
+touch X Y || framework_failure_
 
 
 # Before coreutils-6.2, the " (backup: `B.~1~')" suffix was not printed.
index 4897981570d7d6cf2063f02b6c81ff5f623fe9b5..ba05870abbdaac6d763d092570893cab46657530 100755 (executable)
@@ -24,9 +24,9 @@ cleanup_() { rm -rf "$other_partition_tmpdir"; }
 a="$other_partition_tmpdir/a"
 a2="$other_partition_tmpdir/a~"
 
-rm -f "$a" "$a2" || framework_failure
-echo a > "$a" || framework_failure
-echo a2 > "$a2" || framework_failure
+rm -f "$a" "$a2" || framework_failure_
+echo a > "$a" || framework_failure_
+echo a2 > "$a2" || framework_failure_
 
 # This mv command should exit nonzero.
 mv --b=simple "$a2" "$a" > out 2>&1 && fail=1
index 40a923e4f40db168bddb8e716be14a356cdb07bb..8c49de15d9a844776c0c92d56ae8e8d63c75eb56 100755 (executable)
@@ -23,9 +23,9 @@ print_ver_ cp mv ln
 
 skip_if_root_
 
-mkdir a b c || framework_failure
-echo a > a/f || framework_failure
-echo b > b/f || framework_failure
+mkdir a b c || framework_failure_
+echo a > a/f || framework_failure_
+echo b > b/f || framework_failure_
 
 
 cp a/f b/f c 2> /dev/null && fail=1
index ccf034e49b35a7c3e2f1bb5d3c130cbdd4535c02..2007ee063e884733fda2eae78bee0c6a2b1f57de 100755 (executable)
@@ -19,9 +19,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-touch f1 || framework_failure
-touch f2 || framework_failure
-touch d || framework_failure
+touch f1 || framework_failure_
+touch f2 || framework_failure_
+touch d || framework_failure_
 
 # These mv commands should all exit nonzero.
 
index 885f512bfe73af3d8bddbe4283b1bfa652a18e22..8c6925564d675c531ccd77a452b689117dfe7816 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-mkdir -p dir/file || framework_failure
-> file || framework_failure
+mkdir -p dir/file || framework_failure_
+> file || framework_failure_
 
 
 # These should both fail, but until fileutils-4.0q only the second one did.
index 4d6955e3f18fa9bf75a5e6e4ae0148da4e8f5b79..452bb7de916fdb8472d625a0ddd7e593aea06269 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-mkdir -p a/t b/t || framework_failure
-touch a/t/f || framework_failure
+mkdir -p a/t b/t || framework_failure_
+touch a/t/f || framework_failure_
 
 
 # Expect this to fail with the expected diagnostic.
index 984b46d32ecea10d114841df406fba06270081de..4aa754003b40be7888be88017e87eb4fc5564fbe 100755 (executable)
@@ -22,8 +22,8 @@ print_ver_ mv
 ff=mvforce
 ff2=mvforce2
 
-echo force-contents > $ff || framework_failure
-ln $ff $ff2 || framework_failure
+echo force-contents > $ff || framework_failure_
+ln $ff $ff2 || framework_failure_
 
 # This mv command should exit nonzero.
 mv $ff $ff > out 2>&1 && fail=1
index 27ff87086f0d88ab69b5d80d5cbb9dda83a5b7fa..dbc412b616e63777c80bb8ec85a8758508faa666 100755 (executable)
@@ -22,11 +22,11 @@ print_ver_ cp mv
 
 skip_if_root_
 
-mkdir dst || framework_failure
-(cd dst && touch a b c) || framework_failure
-touch a || framework_failure
-ln a b || framework_failure
-ln a c || framework_failure
+mkdir dst || framework_failure_
+(cd dst && touch a b c) || framework_failure_
+touch a || framework_failure_
+ln a b || framework_failure_
+ln a c || framework_failure_
 
 
 # ======================================
index 586c593c98d26419872e17f1073da0a630a32c8e..8b76c28e4fdb3399df14164ffbc5fa5f0545022e 100755 (executable)
 print_ver_ cp
 skip_if_root_
 
-mkdir -p x dst/x || framework_failure
-touch dst/x/b || framework_failure
+mkdir -p x dst/x || framework_failure_
+touch dst/x/b || framework_failure_
 chmod a-w dst/x
-touch a || framework_failure
-ln a x/b || framework_failure
-ln a c || framework_failure
+touch a || framework_failure_
+ln a x/b || framework_failure_
+ln a c || framework_failure_
 
 
 # ======================================
index 6cc640459769fa71b644b1534cb9eb70d6781b1e..013de0f4bbf5d32d7a0e111b87f3e202ebf7e30a 100755 (executable)
@@ -18,8 +18,8 @@
 
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
-touch a || framework_failure
-ln a b || framework_failure
+touch a || framework_failure_
+ln a b || framework_failure_
 
 
 mv a b || fail=1
index 7014196addc1ff3190dd9a0df28bd2bc0f3dd3b0..3b6fe25f6668a3280a933a1504d568484b06d013 100755 (executable)
@@ -24,9 +24,9 @@ cleanup_() { rm -rf "$other_partition_tmpdir"; }
 
 dir=hlink
 
-mkdir $dir || framework_failure
-> $dir/a || framework_failure
-ln $dir/a $dir/b || framework_failure
+mkdir $dir || framework_failure_
+> $dir/a || framework_failure_
+ln $dir/a $dir/b || framework_failure_
 
 mv $dir "$other_partition_tmpdir" || fail=1
 
index 27e8a92ade434bb7c0c738963d8867af01a577d3..95d959d573571ff149e2e123f479b3da4125be4b 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-touch x || framework_failure
-ln x y || framework_failure
+touch x || framework_failure_
+ln x y || framework_failure_
 
 
 mv --verbose x y > out || fail=1
index 6eef6f6db1b355b18779d20e14acbc28c4099e14..538e12823a8680c7b1eefefd99621936cee36f3c 100755 (executable)
@@ -23,10 +23,10 @@ print_ver_ cp mv
 skip_if_root_
 
 for i in a b c d e f g h; do
-  echo $i > $i || framework_failure
+  echo $i > $i || framework_failure_
 done
-chmod 0 b d f h || framework_failure
-echo y > y || framework_failure
+chmod 0 b d f h || framework_failure_
+echo y > y || framework_failure_
 
 mv -if a b || fail=1
 mv -fi c d < y >/dev/null 2>&1 || fail=1
index 867b7cb62bed058cae36f462966e87f618c80204..a65c3b575c6e50b4110afa7c405b122242a562e2 100755 (executable)
@@ -25,8 +25,8 @@ trap '' TTIN # Ignore SIGTTIN
 
 test "$(uname -s)" = FreeBSD && skip_ "known spurious failure on FreeBSD"
 
-touch f g h i || framework_failure
-chmod 0 g i || framework_failure
+touch f g h i || framework_failure_
+chmod 0 g i || framework_failure_
 
 
 ls /dev/stdin >/dev/null 2>&1 \
index f91f6bfc52dfb6c9d64e5a66c8b8b6633d197a00..e7a381f6bbfa7f39aeefdc7b135af310a5a61865 100755 (executable)
@@ -20,9 +20,9 @@
 print_ver_ mv
 
 for i in a b; do
-  echo $i > $i || framework_failure
+  echo $i > $i || framework_failure_
 done
-echo y > y || framework_failure
+echo y > y || framework_failure_
 
 mv -i a b < y >/dev/null 2>&1 || fail=1
 
index 64c06fe929b86cb167d5decf663373de8a67a400..82596b9e03eb269b19675c4cc92479a94cf9f810 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-mkdir a || framework_failure
-touch b || framework_failure
+mkdir a || framework_failure_
+touch b || framework_failure_
 
 
 # coreutils 6.2 mv would neglect to prompt in this case.
index 9ead3bcc8fc100075aaba511d9a3f6ed7b97f979..7858eb91b6ae68d3debe23067ac9cecb4a580353 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-mkdir a b || framework_failure
-echo foo > a/foo || framework_failure
-ln a/foo a/bar || framework_failure
-echo FUBAR > b/FUBAR || framework_failure
-ln b/FUBAR b/bar || framework_failure
-chmod a-w b/bar || framework_failure
-echo n > no || framework_failure
+mkdir a b || framework_failure_
+echo foo > a/foo || framework_failure_
+ln a/foo a/bar || framework_failure_
+echo FUBAR > b/FUBAR || framework_failure_
+ln b/FUBAR b/bar || framework_failure_
+chmod a-w b/bar || framework_failure_
+echo n > no || framework_failure_
 
 
 mv a/bar a/foo b < no > out 2> err || fail=1
index 67e601239ef1b136671648d30c5e9e1e11239c41..a4df10a6bb101d540db394bdb0896466e0c19e87 100755 (executable)
@@ -22,9 +22,9 @@ print_ver_ mv
 dir=toself-dir
 file=toself-file
 
-rm -rf $dir $file || framework_failure
-mkdir -p $dir/a/b || framework_failure
-touch $file || framework_failure
+rm -rf $dir $file || framework_failure_
+mkdir -p $dir/a/b || framework_failure_
+touch $file || framework_failure_
 
 
 # This mv command should fail.
index a2939d998859396f9ef96bebdbb41a0bd308826b..28e21276833bae957355cbf5ed32d8ebb53afde1 100755 (executable)
@@ -27,8 +27,8 @@ file="$other_partition_tmpdir/file"
 symlink=symlink
 
 
-echo whatever > $file || framework_failure
-ln -s $file $symlink || framework_failure
+echo whatever > $file || framework_failure_
+ln -s $file $symlink || framework_failure_
 
 # This mv command should exit nonzero.
 mv $symlink $file > out 2>&1 && fail=1
index a934ea247dc68d84e92edd556b586d2a0f8d7c6b..8d1eadb5fca636a43a7338c6850faba19041317a 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ mv
 dir1=is3-dir1
 dir2=is3-dir2
 
-mkdir $dir1 $dir2 || framework_failure
+mkdir $dir1 $dir2 || framework_failure_
 
 # This mv command should exit nonzero.
 mv $dir1 $dir2 $dir2 > out 2>&1 && fail=1
index 6af1f8abb567c1ebd6715a16efef8ca24d9e8ccc..7a3546e4716aa6cae53ef00dd042efc3a6fc944f 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-touch file || framework_failure
-ln -s file s || framework_failure
+touch file || framework_failure_
+ln -s file s || framework_failure_
 
 
 # This must fail.
index 095a843d594b459bb33d3ec59172fd86f3eb6a4f..881d7ee47bf944128a5c67f11c5950f8c04aed43 100755 (executable)
@@ -38,11 +38,11 @@ for i in `echo $b`; do
     echo $i$j
   done
 done > .dirs
-mkdir `cat .dirs` || framework_failure
+mkdir `cat .dirs` || framework_failure_
 sed 's,$,/f,' .dirs | xargs touch
 
 last_file=`tail -n1 .dirs`/f
-test -f $last_file || framework_failure
+test -f $last_file || framework_failure_
 
 
 mv * "$other_partition_tmpdir" || fail=1
index 8d9e0da2ea2a12fbd8ce76152d9f123baab1fced..ada2ade63c6ea8b578db58e4df451e087c736d0b 100755 (executable)
@@ -21,37 +21,37 @@ print_ver_ mv
 
 
 # test miscellaneous combinations of -f -i -n parameters
-touch a b || framework_failure
+touch a b || framework_failure_
 echo "\`a' -> \`b'" > out_move
 > out_empty
 
 # ask for overwrite, answer no
-touch a b || framework_failure
+touch a b || framework_failure_
 echo n | mv -vi a b 2>/dev/null > out1 || fail=1
 compare out1 out_empty || fail=1
 
 # ask for overwrite, answer yes
-touch a b || framework_failure
+touch a b || framework_failure_
 echo y | mv -vi a b 2>/dev/null > out2 || fail=1
 compare out2 out_move || fail=1
 
 # -n wins (as the last option)
-touch a b || framework_failure
+touch a b || framework_failure_
 echo y | mv -vin a b 2>/dev/null > out3 || fail=1
 compare out3 out_empty || fail=1
 
 # -n wins (as the last option)
-touch a b || framework_failure
+touch a b || framework_failure_
 echo y | mv -vfn a b 2>/dev/null > out4 || fail=1
 compare out4 out_empty || fail=1
 
 # -n wins (as the last option)
-touch a b || framework_failure
+touch a b || framework_failure_
 echo y | mv -vifn a b 2>/dev/null > out5 || fail=1
 compare out5 out_empty || fail=1
 
 # options --backup and --no-clobber are mutually exclusive
-touch a || framework_failure
+touch a || framework_failure_
 mv -bn a b 2>/dev/null && fail=1
 
 Exit $fail
index 4297953132623dc79e737e3acb140966d17eda0a..f43a7079133e2480d107a58f11c5d8fe9673d169 100755 (executable)
@@ -24,11 +24,11 @@ cleanup_() { rm -rf "$other_partition_tmpdir"; }
 null=mv-null
 dir=mv-dir
 
-rm -f $null || framework_failure
-mknod $null p || framework_failure
-test -p $null || framework_failure
-mkdir -p $dir/a/b/c $dir/d/e/f || framework_failure
-touch $dir/a/b/c/file1 $dir/d/e/f/file2 || framework_failure
+rm -f $null || framework_failure_
+mknod $null p || framework_failure_
+test -p $null || framework_failure_
+mkdir -p $dir/a/b/c $dir/d/e/f || framework_failure_
+touch $dir/a/b/c/file1 $dir/d/e/f/file2 || framework_failure_
 
 # We used to...
 # exit 77 here to indicate that we couldn't run the test.
index a73fae9edc0668cba272ce183c5cb579567ab4f5..1d800e17f2b6d7c891f52d0a3e002a5bcae7d02c 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-mkdir -p d/sub empty src d2/sub e2 || framework_failure
-touch f || framework_failure
+mkdir -p d/sub empty src d2/sub e2 || framework_failure_
+touch f || framework_failure_
 
 # Skip this test if there's an underlying kernel bug.
-mkdir a b b/a || framework_failure
+mkdir a b b/a || framework_failure_
 
 mv a b ||
   skip_ "your kernel's rename syscall is buggy"
index 2c0d0e5b313496abadcd6fc0de5669cf31f13281..8d2566964ae6fcd3e717c67be0ddbcdb1f5499c6 100755 (executable)
@@ -25,8 +25,8 @@ skip_if_root_
 cleanup_() { t=$other_partition_tmpdir; chmod -R 700 "$t"; rm -rf "$t"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
-touch k "$other_partition_tmpdir/k" || framework_failure
-chmod u-w "$other_partition_tmpdir" || framework_failure
+touch k "$other_partition_tmpdir/k" || framework_failure_
+chmod u-w "$other_partition_tmpdir" || framework_failure_
 
 
 mv -f k "$other_partition_tmpdir" 2> out && fail=1
index 5c975fd43c8c14642afd2b64402579682c92aabf..5e27ff35b4d57d10d457d08fd492b705e4bfd83f 100755 (executable)
@@ -24,11 +24,11 @@ print_ver_ mv
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
-touch f || framework_failure
-ln f g || framework_failure
-mkdir a b || framework_failure
-touch a/1 || framework_failure
-ln a/1 b/1 || framework_failure
+touch f || framework_failure_
+ln f g || framework_failure_
+mkdir a b || framework_failure_
+touch a/1 || framework_failure_
+ln a/1 b/1 || framework_failure_
 
 
 mv f g "$other_partition_tmpdir" || fail=1
index 9edb2516a144e58ee61f1f2b7415d63fe86b71be..e3a7db1da205b56a4a85780627d3dca94aefea7c 100755 (executable)
@@ -23,7 +23,7 @@ print_ver_ mv
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
-mkdir foo || framework_failure
+mkdir foo || framework_failure_
 
 
 mv foo/ "$other_partition_tmpdir/bar" || fail=1
index 2366bd79eed6492b1324f681cf1967104472b548..cab0076f25707429e639e0364760426ccab69fc7 100755 (executable)
@@ -21,8 +21,8 @@
 print_ver_ mv
 skip_if_root_
 
-mkdir -p no-write/dir || framework_failure
-chmod u-w no-write || framework_failure
+mkdir -p no-write/dir || framework_failure_
+chmod u-w no-write || framework_failure_
 
 
 mv no-write/dir . > out 2>&1 && fail=1
index f689d9d0a3f4f6ee536d5a2a44c1a182af2b0350..3d61c3c27cf5f0b56b6582bc37a1d889729a7b0e 100755 (executable)
@@ -30,14 +30,14 @@ cleanup_() { rm -rf "$other_partition_tmpdir"; }
 # file from a sticky tmpdir to a directory owned by that user on
 # a different partition.
 
-mkdir t || framework_failure
-chmod a=rwx,o+t t || framework_failure
-echo > t/root-owned || framework_failure
-chmod a+r t/root-owned || framework_failure
-chown "$NON_ROOT_USERNAME" "$other_partition_tmpdir" || framework_failure
+mkdir t || framework_failure_
+chmod a=rwx,o+t t || framework_failure_
+echo > t/root-owned || framework_failure_
+chmod a+r t/root-owned || framework_failure_
+chown "$NON_ROOT_USERNAME" "$other_partition_tmpdir" || framework_failure_
 
 # We have to allow $NON_ROOT_USERNAME access to ".".
-chmod go+x . || framework_failure
+chmod go+x . || framework_failure_
 
 
 # Ensure that $NON_ROOT_USERNAME can access the required version of mv.
index 600fde35f8f69520a1ffd84472ffa8eed21a2392..162ac55cd6aa73b765556fc0ba3730f8f2db5ff5 100755 (executable)
@@ -26,9 +26,9 @@ rem_file="$other_partition_tmpdir/file"
 rem_symlink="$other_partition_tmpdir/symlink"
 file=to-sym
 
-echo local > $file || framework_failure
-echo remote > $rem_file || framework_failure
-ln -s $rem_file $rem_symlink || framework_failure
+echo local > $file || framework_failure_
+echo remote > $rem_file || framework_failure_
+ln -s $rem_file $rem_symlink || framework_failure_
 
 # This mv command should succeed, unlinking the symlink
 # before copying.
index 6215b149bf790620c72db70ce9ed09ceb2a60726..104cf594c55978b5bc72c01ba73b8b9053fa2e3e 100755 (executable)
@@ -22,7 +22,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ mv
 
-mkdir foo || framework_failure
+mkdir foo || framework_failure_
 
 
 mv foo/ bar || fail=1
@@ -30,8 +30,8 @@ mv foo/ bar || fail=1
 # mv and cp would misbehave for coreutils versions [5.3.0..5.97], 6.0 and 6.1
 for cmd in mv 'cp -r'; do
   for opt in '' -T -u; do
-    rm -rf d e || framework_failure
-    mkdir d    || framework_failure
+    rm -rf d e || framework_failure_
+    mkdir d    || framework_failure_
 
     $cmd $opt d e/ || fail=1
     if test "$cmd" = mv; then
index 6a746ec8541a327c6d4f9b6517788f5d023ac366..0f8ac8927a1f47edac507fbf310d293acc75bfb8 100755 (executable)
@@ -19,9 +19,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ cp mv
 
-echo old > old || framework_failure
-touch -d yesterday old || framework_failure
-echo new > new || framework_failure
+echo old > old || framework_failure_
+touch -d yesterday old || framework_failure_
+echo new > new || framework_failure_
 
 
 for interactive in '' -i; do
index c2ad5046e58f1500b9e0c8c5b3a2c70dc2715d73..9034a9a1955ff441e18605f8cf3bc3a52a2deb3a 100755 (executable)
@@ -23,18 +23,18 @@ pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
 tmp=d
 
-mkdir $tmp || framework_failure
-cd $tmp || framework_failure
+mkdir $tmp || framework_failure_
+cd $tmp || framework_failure_
 
-mkdir subdir removed || framework_failure
-touch regfile || framework_failure
+mkdir subdir removed || framework_failure_
+touch regfile || framework_failure_
 
-ln -s regfile link1 || framework_failure
-ln -s subdir link2 || framework_failure
-ln -s missing link3 || framework_failure
-ln -s subdir/missing link4 || framework_failure
+ln -s regfile link1 || framework_failure_
+ln -s subdir link2 || framework_failure_
+ln -s missing link3 || framework_failure_
+ln -s subdir/missing link4 || framework_failure_
 
-cd "$pwd/$tmp/removed" || framework_failure
+cd "$pwd/$tmp/removed" || framework_failure_
 
 # Skip this test if the system doesn't let you remove the working directory.
 if rmdir ../removed 2>/dev/null; then
index 40812f8e2aa8bbafa405971a8124f0af7dbfff56..a557c2297a618dd73f6223499e459db34be3b738 100755 (executable)
@@ -23,19 +23,19 @@ pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
 tmp=d
 
-mkdir $tmp || framework_failure
-cd $tmp || framework_failure
+mkdir $tmp || framework_failure_
+cd $tmp || framework_failure_
 
-mkdir subdir removed || framework_failure
-touch regfile || framework_failure
+mkdir subdir removed || framework_failure_
+touch regfile || framework_failure_
 
-ln -s regfile link1 || framework_failure
-ln -s subdir link2 || framework_failure
-ln -s missing link3 || framework_failure
-ln -s subdir/missing link4 || framework_failure
-ln -s link5 link5 || framework_failure
+ln -s regfile link1 || framework_failure_
+ln -s subdir link2 || framework_failure_
+ln -s missing link3 || framework_failure_
+ln -s subdir/missing link4 || framework_failure_
+ln -s link5 link5 || framework_failure_
 
-cd "$pwd/$tmp/removed" || framework_failure
+cd "$pwd/$tmp/removed" || framework_failure_
 
 # Skip this test if the system doesn't let you remove the working directory.
 if rmdir ../removed 2>/dev/null; then
index 3551567318d4fe9d039caa55d5c0e636682c32f2..150d6572cf2241f07a2c2afeefe7dc435cef7024 100755 (executable)
@@ -23,18 +23,18 @@ pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
 tmp=d
 
-mkdir $tmp || framework_failure
-cd $tmp || framework_failure
+mkdir $tmp || framework_failure_
+cd $tmp || framework_failure_
 
-mkdir subdir removed || framework_failure
-touch regfile || framework_failure
+mkdir subdir removed || framework_failure_
+touch regfile || framework_failure_
 
-ln -s regfile link1 || framework_failure
-ln -s subdir link2 || framework_failure
-ln -s missing link3 || framework_failure
-ln -s subdir/missing link4 || framework_failure
+ln -s regfile link1 || framework_failure_
+ln -s subdir link2 || framework_failure_
+ln -s missing link3 || framework_failure_
+ln -s subdir/missing link4 || framework_failure_
 
-cd "$pwd/$tmp/removed" || framework_failure
+cd "$pwd/$tmp/removed" || framework_failure_
 
 # Skip this test if the system doesn't let you remove the working directory.
 if rmdir ../removed 2>/dev/null; then
index 957816e88d67ba8714158a130965d7c49c97f909..f6a1085893410d7a1337ddadf1efeee9f9ccda10 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ readlink
 
-mkdir subdir || framework_failure
-touch regfile || framework_failure
-ln -s regfile link1 || framework_failure
-ln -s missing link2 || framework_failure
+mkdir subdir || framework_failure_
+touch regfile || framework_failure_
+ln -s regfile link1 || framework_failure_
+ln -s missing link2 || framework_failure_
 
 
 v=`readlink link1` || fail=1
index eb624eeb2088c55563cfa55bb23bf58497017775..b7651da32f05d90665868e44092d3e24e64aa695 100755 (executable)
@@ -24,18 +24,18 @@ print_ver_ rm
 # the offending euidaccess_stat call.
 skip_if_root_
 
-mkdir x || framework_failure
-cd x || framework_failure
+mkdir x || framework_failure_
+cd x || framework_failure_
 
 # Construct a hierarchy containing a relative file with a name
 : ${PERL=perl}
 $PERL \
     -e 'my $d = "x" x 200; foreach my $i (1..52)' \
     -e '  { mkdir ($d, 0700) && chdir $d or die "$!" }' \
-  || framework_failure
+  || framework_failure_
 
-cd .. || framework_failure
-echo n > no || framework_failure
+cd .. || framework_failure_
+echo n > no || framework_failure_
 
 rm ---presume-input-tty -r x < no > out || fail=1
 
index 292836b547dba5e46dbdbc6b73e6db4b8654375b..b4721ad4e895c39587daa0ae011f63ec815d5c04 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir --mode=0500 unwritable-dir || framework_failure
+mkdir --mode=0500 unwritable-dir || framework_failure_
 
 
 # For rm from coreutils-5.0.1, this would prompt.
index 1b347d957ad040ff1c79984edb6ae4267349eca4..2e2f15237a12a37e478cc6093034be7764ec2afd 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir d || framework_failure
+mkdir d || framework_failure_
 
 
 rm d 2> out && fail=1
index dd23b373cd182fe08a1d79e6240a37edce63f4c8..fdf4fc174df59fcf11924f7ae01fce56c40efe69 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir a b || framework_failure
-touch a/f b/f || framework_failure
+mkdir a b || framework_failure_
+touch a/f b/f || framework_failure_
 
 
 rm -r a b || fail=1
index 20abd5c729539cdfa1a719338c4f83dc536f1310..f36c6f2d6b976e2340f60726041d432bcbec199e 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ rm
 skip_if_root_
 
-mkdir -m0 inacc || framework_failure
+mkdir -m0 inacc || framework_failure_
 
 # Also exercise the different code path that's taken for a directory
 # that is empty (hence removable) and unreadable.
index 95cce33d421d385fb006c3ddd29d4e246eda7b38..1ee8bf944727ab1c95e071a94d6635655cbac95b 100755 (executable)
@@ -44,7 +44,7 @@ df -T -t ext3 -t ext4dev -t ext4 . \
   || skip_ 'this test runs only on an ext3 or ext4 file system'
 
 # Skip if there are too few inodes free.  Require some slack.
-free_inodes=$(stat -f --format=%d .) || framework_failure
+free_inodes=$(stat -f --format=%d .) || framework_failure_
 min_free_inodes=$(expr 12 \* $n / 10)
 test $min_free_inodes -lt $free_inodes \
   || skip_ "too few free inodes on '.': $free_inodes;" \
@@ -59,7 +59,7 @@ mkdir d &&
     test -f $n &&
   cd .. &&
   ok=1
-test $ok = 1 || framework_failure
+test $ok = 1 || framework_failure_
 setup_duration=$(expr $(date +%s) - $start)
 echo creating a $n-entry directory took $setup_duration seconds
 
index 3b0d515370924db6ef0707c41107c3e9e19c0bcd..2d353649c8b8f2b8e1b97d4a930dc3c41cb5fed6 100755 (executable)
@@ -21,7 +21,7 @@ test=f-1
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir -p d || framework_failure
+mkdir -p d || framework_failure_
 
 rm -f d/no-such-file || fail=1
 
index 4137d9dacd929da3103c05f20be8a41270478894..cd294c5bcbc57a5a72d92755709dd4356ca12889 100755 (executable)
@@ -24,9 +24,9 @@ require_root_
 # The containing directory must be owned by the user who eventually runs rm.
 chown $NON_ROOT_USERNAME .
 
-mkdir a || framework_failure
-chmod 1777 a || framework_failure
-touch a/b || framework_failure
+mkdir a || framework_failure_
+chmod 1777 a || framework_failure_
+touch a/b || framework_failure_
 
 
 # Try to ensure that $NON_ROOT_USERNAME can access
index 750924f6238e5cd5cb5c8b17fe8d3cf06f4bce8a..8e9b5b07e6023f1f26e1c25d6db4735cc7ae9f4d 100755 (executable)
@@ -29,13 +29,13 @@ mkdir d           &&
   ln -s f d/slink &&
   chmod a-w d     &&
   ok=1
-test $ok = 1 || framework_failure
+test $ok = 1 || framework_failure_
 
 mkdir e           &&
   ln -s f e/slink &&
   chmod a-w e     &&
   ok=1
-test $ok = 1 || framework_failure
+test $ok = 1 || framework_failure_
 
 
 rm -rf d/f 2> out && fail=1
index cdadbab70e5ef8ad0d5eac04111ec8364c5c322b..48560ddf2be7d6bd76ef12246ac51f1e45660d88 100755 (executable)
@@ -27,7 +27,7 @@ echo "$0: creating 78 trees, each of depth 153; this will take a while..." >&2
 y=`seq 1 150|tr -sc '\n' y|tr '\n' /`
 for i in 1 2 3; do
   for j in 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; do
-    mkdir -p t/$i/$j/$y || framework_failure
+    mkdir -p t/$i/$j/$y || framework_failure_
   done
 done
 
index 369f912632a35086965f60baaad4cb00f9f4b61e..e8e487672bbecd292208617234ddc9856e1fd8aa 100755 (executable)
@@ -22,9 +22,9 @@ test=i-1
 print_ver_ rm
 
 t=t
-mkdir -p $t || framework_failure
-echo > $t/a || framework_failure
-test -f $t/a || framework_failure
+mkdir -p $t || framework_failure_
+echo > $t/a || framework_failure_
+test -f $t/a || framework_failure_
 
 echo y > $t/$test.Iy
 echo n > $t/$test.In
index c6dc080a0b31cfbce1b32384f2c9e376a3598ac4..5ffde73c7162984864e1fd22c22ae26470f0e4fb 100755 (executable)
@@ -21,9 +21,9 @@
 print_ver_ rm
 skip_if_root_
 
-touch f || framework_failure
-chmod 0 f || framework_failure
-touch exp || framework_failure
+touch f || framework_failure_
+chmod 0 f || framework_failure_
+touch exp || framework_failure_
 
 
 rm --interactive=never f > out || fail=1
index 6e46d2238b5c99afb7d59924a0a006ccc592bd16..9316b828f3b2368edcd940677ea3cb3c5e05c2bd 100755 (executable)
@@ -21,8 +21,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir dir || framework_failure
-echo y > y || framework_failure
+mkdir dir || framework_failure_
+echo y > y || framework_failure_
 
 
 # This must fail.
index 8c76f40a7d04f4e896fb707b254aad774a006487..bff42f255f3ef37add004aa1a7bca2a867164411 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ rm
 skip_if_root_
 
-touch existing-non-dir || framework_failure
+touch existing-non-dir || framework_failure_
 
 
 # With coreutils-6.3, this would exit nonzero.  It should not.
index b5fa5881e0cab3587d004dc660b76c236d724883..e87ab793df6251b6564be9c2a6fa44a8c838a8fe 100755 (executable)
@@ -26,7 +26,7 @@ require_openat_support_
 skip_if_root_
 
 p=`pwd`
-mkdir abs1 abs2 no-access || framework_failure
+mkdir abs1 abs2 no-access || framework_failure_
 
 
 set +x
index 7b9130a9d5f200ae4df4e924ca2dafdef9677efb..032c645ed0e64b946342c3bba10266893a84f4fc 100755 (executable)
@@ -22,11 +22,11 @@ test=interactive-always
 print_ver_ rm
 
 touch file1-1 file1-2 file2-1 file2-2 file3-1 file3-2 file4-1 file4-2 \
-  || framework_failure
+  || framework_failure_
 # If asked, answer no to first question, then yes to second.
 echo 'n
-y' > $test.I || framework_failure
-rm -f out err || framework_failure
+y' > $test.I || framework_failure_
+rm -f out err || framework_failure_
 
 
 # The prompt has a trailing space, and no newline, so an extra
index 4971fe52f8425d673c69643ee40c850c54bed619..fc1c76dd7118818deaf0e74702fafcaa801525f2 100755 (executable)
@@ -21,12 +21,12 @@ test=interactive-once
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir -p dir1-1 dir2-1 dir2-2 || framework_failure
+mkdir -p dir1-1 dir2-1 dir2-2 || framework_failure_
 touch file1-1 file2-1 file2-2 file2-3 file3-1 file3-2 file3-3 file3-4 \
-  || framework_failure
-echo y > $test.Iy || framework_failure
-echo n > $test.In || framework_failure
-rm -f out err || framework_failure
+  || framework_failure_
+echo y > $test.Iy || framework_failure_
+echo n > $test.In || framework_failure_
+rm -f out err || framework_failure_
 
 
 # The prompt has a trailing space, and no newline, so an extra
index bac607cb8872f54f1d17018bb643acf664a09052..22877023239fe863ecbe3bae04b345ffaa00881a 100755 (executable)
@@ -22,10 +22,10 @@ test=ir-1
 print_ver_ rm
 
 t=t
-mkdir -p $t $t/a $t/b $t/c || framework_failure
-> $t/a/a || framework_failure
-> $t/b/bb || framework_failure
-> $t/c/cc || framework_failure
+mkdir -p $t $t/a $t/b $t/c || framework_failure_
+> $t/a/a || framework_failure_
+> $t/b/bb || framework_failure_
+> $t/c/cc || framework_failure_
 
 cat <<EOF > $test.I
 y
index 5ecd2750f25c279081b4062b8d34506816fd97f9..544b8c241dbe7093849b8fd531ca804c592ec271 100755 (executable)
 print_ver_ rm
 require_root_
 
-mkdir d || framework_failure
-touch d/f || framework_failure
-chown -R $NON_ROOT_USERNAME d || framework_failure
+mkdir d || framework_failure_
+touch d/f || framework_failure_
+chown -R $NON_ROOT_USERNAME d || framework_failure_
 
 # Ensure that non-root can access files in root-owned ".".
-chmod go=x . || framework_failure
+chmod go=x . || framework_failure_
 
 
 # This must fail, since `.' is not writable by $NON_ROOT_USERNAME.
index 1ef61a7355e0aead2b5230dfe165b416ab3bbd1a..064d27c2b0e3f64b3ba8b9c8da542fda9652e566 100755 (executable)
@@ -35,7 +35,7 @@ mkdir -p a/b $t/y
 mount --bind $t a/b \
   || skip_ "This test requires mount with a working --bind option."
 
-cat <<\EOF > exp || framework_failure
+cat <<\EOF > exp || framework_failure_
 rm: skipping `a/b', since it's on a different device
 EOF
 
index c415a3bf362818b05f64789a217be9fc1d313955..c1d04bd5c4e9e1a82f43815aaf6993b8da1506a2 100755 (executable)
@@ -22,10 +22,10 @@ test=r-1
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir a a/a || framework_failure
-> b || framework_failure
+mkdir a a/a || framework_failure_
+> b || framework_failure_
 
-cat <<\EOF > $test.E || framework_failure
+cat <<\EOF > $test.E || framework_failure_
 removed directory: `a/a'
 removed directory: `a'
 removed `b'
index f38a181c4629f541ae08a0181229a053f2dd09dd..71df2f0fe5edfb4eddefc9f51c1a8a52be0f9570 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir t t/a t/a/b || framework_failure
-> t/a/f || framework_failure
-> t/a/b/g || framework_failure
+mkdir t t/a t/a/b || framework_failure_
+> t/a/f || framework_failure_
+> t/a/b/g || framework_failure_
 
 # FIXME: if this fails, it's a framework failure
-cat <<\EOF | sort > t/E || framework_failure
+cat <<\EOF | sort > t/E || framework_failure_
 removed directory: `t/a'
 removed directory: `t/a/b'
 removed `t/a/b/g'
index 5372046f67d2fa20d10f0dfc662898b69cf0574c..e47ee093ec993f8f4d59431ed82b09c28a4dc91b 100755 (executable)
@@ -26,8 +26,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir t || framework_failure
-cd t || framework_failure
+mkdir t || framework_failure_
+cd t || framework_failure_
 
 # Create 500 files (20 * 25).
 for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j; do
@@ -35,12 +35,12 @@ for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j; do
   for j in 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; do
     files="$files $i$j"
   done
-  touch $files || framework_failure
+  touch $files || framework_failure_
 done
 
-test -f 0a || framework_failure
-test -f by || framework_failure
-cd .. || framework_failure
+test -f 0a || framework_failure_
+test -f by || framework_failure_
+cd .. || framework_failure_
 
 rm -rf t || fail=1
 test -d t && fail=1
index 9c6824d1332869c155c34a316fb90e079a134297..56135c42a8ee9786c6039aedcfd1a5518b5e0e0e 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir d || framework_failure
-touch d/a || framework_failure
+mkdir d || framework_failure_
+touch d/a || framework_failure_
 
 rm -fr d/. 2>/dev/null && fail=1
 rm -fr d/./ 2>/dev/null && fail=1
index 3f1596728286221b80883f2e4853feed72fab09b..41405ebf719f195d460db076e2af8f11a07c9cac 100755 (executable)
@@ -24,12 +24,12 @@ print_ver_ rm
 # What counts is a combination of the number of files and
 # the lengths of their names.  For details, see
 # http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html
-mkdir b || framework_failure
-cd b || framework_failure
+mkdir b || framework_failure_
+cd b || framework_failure_
 for i in `seq 1 250`; do
-  touch `printf %040d $i` || framework_failure
+  touch `printf %040d $i` || framework_failure_
 done
-cd .. || framework_failure
+cd .. || framework_failure_
 
 
 # On a buggy system, this would fail with the diagnostic,
index e90996d8f97230cb3fd6efe618ba394689d39a10..ce0d8715037c4a7b6d18bead41ba9f1b2c8aa224 100755 (executable)
@@ -20,8 +20,8 @@
 print_ver_ rm
 skip_if_root_
 
-mkdir -p b/a/p b/c b/d || framework_failure
-chmod u-w b/a || framework_failure
+mkdir -p b/a/p b/c b/d || framework_failure_
+chmod u-w b/a || framework_failure_
 
 
 # This should fail.
index c73349f0b165cba8852108af12614e16ee013b80..0cd089291730f0410b8dc40be85b40e148045c5b 100755 (executable)
 print_ver_ rm
 skip_if_root_
 
-mkdir -p a/0 || framework_failure
-mkdir -p a/1/2 b/3 || framework_failure
-mkdir a/2 a/3 || framework_failure
-chmod u-x a/1 b || framework_failure
+mkdir -p a/0 || framework_failure_
+mkdir -p a/1/2 b/3 || framework_failure_
+mkdir a/2 a/3 || framework_failure_
+chmod u-x a/1 b || framework_failure_
 
 
 # Exercise two separate code paths -- though both result
index 5e1eb71a4123fc19cb0605a383ebc95fbe9c1833..56aea8c1edac3ec9f6983bfa965089eed14ec20e 100755 (executable)
 print_ver_ rm
 skip_if_root_
 
-mkdir -p z || framework_failure
-cd z || framework_failure
-touch empty empty-u || framework_failure
+mkdir -p z || framework_failure_
+cd z || framework_failure_
+touch empty empty-u || framework_failure_
 echo not-empty > fu
 ln -s empty-f slink
 ln -s . slinkdot
-mkdir d du || framework_failure
-chmod u-w fu du empty-u || framework_failure
+mkdir d du || framework_failure_
+chmod u-w fu du empty-u || framework_failure_
 cd ..
 
 
index a02cf740d5f7cc21cd5f2f2d5fd92c747a891cf0..08ed64ad831546325221ea3c0115d25f137cc7b9 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ rm
 skip_if_root_
 
-mkdir dir || framework_failure
+mkdir dir || framework_failure_
 
 
 # This should fail.
index 54d0e4ce9c6ba4c590250af80f4e0ead011545dd..5c33bf7296daa5bdad500230274b97ea34daf420 100755 (executable)
 print_ver_ rm
 skip_if_root_
 
-mkdir -p d/e || framework_failure
-cat <<EOF > in || framework_failure
+mkdir -p d/e || framework_failure_
+cat <<EOF > in || framework_failure_
 y
 y
 y
 EOF
 
-cat <<\EOF > exp || framework_failure
+cat <<\EOF > exp || framework_failure_
 rm: descend into directory `d'
 rm: remove directory `d/e'
 rm: remove directory `d'
index d41e7a72fb1a4fda497bf923ce7736eb12423acb..ae3365f25d5117ae297d68930f035c2209979005 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ rm
 skip_if_root_
 
-mkdir -p a/b || framework_failure
+mkdir -p a/b || framework_failure_
 chmod u-r a
 
 
index 021662b08cc877e3515a8bc64e3f3e1a918d409e..7553af5c38a507a4b124ea79fe87f077a934a222 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ rm
 skip_if_root_
 
-mkdir -p a/1 b c d/2 e/3 || framework_failure
+mkdir -p a/1 b c d/2 e/3 || framework_failure_
 
 
 t=`pwd`
index ba38553333aae34f51d30976b2e3a3eeee05a0a7..6620742ec1037d357502936b258d5715c54861d9 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rm
 
-mkdir a || framework_failure
-touch a/x || framework_failure
+mkdir a || framework_failure_
+touch a/x || framework_failure_
 
 
 rm --verbose -r a/// > out || fail=1
index 9af747b852f53c789eb597f05c1a88218ee2b143..8d012c04819ed263199340042d34ee1fe1d62c0d 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rmdir
 
-mkdir d d/e d/e/f || framework_failure
-chmod a-w d || framework_failure
+mkdir d d/e d/e/f || framework_failure_
+chmod a-w d || framework_failure_
 
 
 # This rmdir command outputs two diagnostics.
index b6faaeadd2d720204eebaf3c3e766531e90b8f5a..c8db2243c6c9e2ec094d1d2b70cdd3e4c0b12344 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ rmdir
 
 cwd=`pwd`
-mkdir -p "$cwd/a/b/c" "$cwd/a/x" || framework_failure
+mkdir -p "$cwd/a/b/c" "$cwd/a/x" || framework_failure_
 
 rmdir -p --ignore-fail-on-non-empty "$cwd/a/b/c" || fail=1
 # $cwd/a/x should remain
index e7785c372d35c0e77f53aca6801d65ce77a31c56..902743381cee2f759cd03b866372acf2e4c406dc 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ rmdir
 
-mkdir dir || framework_failure
+mkdir dir || framework_failure_
 
 
 # Prior to coreutils-4.5.2, this would fail with the following:
index 48c57e077186254d61faaa1ec0a9b22f3e7416a5..3191620aa030607c283c5d8e5a32b98bf2012a9a 100755 (executable)
@@ -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
index 1fe368cf2b7b9960229e6d7d19bdabf799eec54c..039f457a3f0151221570810953de40c0ca2c898f 100755 (executable)
@@ -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
index 8b4d157a13e2c31e2a184ddae883fe68c928e1ab..7bf698989a1a3837df9fdc0ce39b1ee5e1d03b79 100755 (executable)
@@ -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
index 932c178e5c305c113b8d8ae766ffafd35a946cea..1612c2e230decbddbb85410fc0a138faf9cf413d 100755 (executable)
@@ -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
index d3165fb79b2b32a3135d20494340835f6f6500de..ea2ac9f20dd154e91778922d09e31048669501f4 100755 (executable)
@@ -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
index 7577aaa50aaaaaf6994b335e8d9136bffe32ade7..efb0d8166351cf7919a80c075a44453944b14501 100755 (executable)
@@ -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.
index b615ad3e622619658de1d11a4c547855771188c7..5b4223e2bd6266dd2216210955431d1ace5cc00b 100755 (executable)
@@ -21,7 +21,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ tail
 
-touch a b || framework_failure
+touch a b || framework_failure_
 
 debug='---disable-inotify'
 debug=
index 11faed5fb93bd71f984a82af3f26f40fd29964ef..874081168a16e414af2fa3dece5f34ebf7ba0bf6 100755 (executable)
@@ -25,8 +25,8 @@ expensive_
 # at the beginning and another set of 8 bytes at the end.
 # The rest will be NUL bytes.  On most modern systems, the following
 # creates a file that takes up only a few KB.  Here, du -sh says 16K.
-echo abcdefgh | tr -d '\n' > big || framework_failure
-echo 87654321 | tr -d '\n' > tmp || framework_failure
+echo abcdefgh | tr -d '\n' > big || framework_failure_
+echo 87654321 | tr -d '\n' > tmp || framework_failure_
 # Seek 4GB - 8
 dd bs=1 seek=4294967288 if=tmp of=big 2> err || dd_failed=1
 if test "$dd_failed" = 1; then
index e79f8f0a0a7501615b8bba712955f1c743c1a466..51520ab67f2b2a1702624ac941a1fa260267de0b 100755 (executable)
@@ -19,8 +19,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ tail
 
-echo line > exp || framework_failure
-echo line > in || framework_failure
+echo line > exp || framework_failure_
+echo line > in || framework_failure_
 
 timeout 1 tail -f < in > out 2> err
 
index a01e57498218b2daf2dc4d58ff2b776a7acee63d..9415f9692fdf9cd03c9676300ab33d1f81d540de 100755 (executable)
@@ -21,7 +21,7 @@ print_ver_ tail
 
 # 9 is a magic number, related to internal details of tail.c and hash.c
 n=9
-seq $n | xargs touch || framework_failure
+seq $n | xargs touch || framework_failure_
 
 debug='---disable-inotify'
 debug=
index fc2b24b9cdddbaaca4cb4f825caf0b363564b942..424c2ebde858ca2c183145318dc46339d8d4a527 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ tail
 
-touch f || framework_failure
+touch f || framework_failure_
 
 debug='---disable-inotify -s .001'
 debug=
index b88b8473cc4243c7bdd45de2fba28fe2a9773911..6c4c02b65d9fba3fb56476318232a9794fbefaf5 100755 (executable)
@@ -28,8 +28,8 @@ print_ver_ tail
 # cleanup and exit correctly when it receives a SIGTERM, thus hanging the test.
 very_expensive_
 
-touch file || framework_failure
-touch tail.out || framework_failure
+touch file || framework_failure_
+touch tail.out || framework_failure_
 
 ( timeout 10s gdb --version ) > gdb.out 2>&1
 case $(cat gdb.out) in
index f75c3deb22a1c685d36991284f3b93071c849328..31594e22fdc54fb42756b4663724e7c0bc1203cd 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ tail
 getlimits_
 
-touch empty here || framework_failure
+touch empty here || framework_failure_
 
 
 for inotify in ---disable-inotify ''; do
index 3422c23cf05b6bbf5ceefdf0bd58b4d640cf9aca..f1ae470158c0c09c65de7dc1c608b3e373fb4504 100755 (executable)
@@ -22,7 +22,7 @@ print_ver_ tail
 mkfifo_or_skip_ fifo
 
 echo 1 > fifo &
-echo 1 > exp || framework_failure
+echo 1 > exp || framework_failure_
 
 timeout 10 tail -f fifo > out
 test $? = 124 || fail=1
index ab6ad5763abc272b177927cd0f993bd8851a08bd..3dcbacbf9c3207b3567f42cb16aa381f5986eb5e 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ tail
 
-(echo 1; echo 2) > k || framework_failure
+(echo 1; echo 2) > k || framework_failure_
 
 
 sh -c 'read x; tail' < k > out || fail=1
index d17a6c2380f2755c3ef754d8dc5dabc1dc69a836..1720a6ecaba9e549ae479477ac9d91a2ce9f53be 100755 (executable)
@@ -26,8 +26,8 @@ print_ver_ tail
 
 require_proc_pid_status_
 
-touch empty || framework_failure
-echo anything > nonempty || framework_failure
+touch empty || framework_failure_
+echo anything > nonempty || framework_failure_
 
 
 for inotify in ---disable-inotify ''; do
index 8fd19948c75259502d7af26f9c5a143a120f147a..a1119703e2da3c55a175c68a52f387714a38807f 100755 (executable)
@@ -20,8 +20,8 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ tail
 
-touch here || framework_failure
-{ touch unreadable && chmod a-r unreadable; } || framework_failure
+touch here || framework_failure_
+{ touch unreadable && chmod a-r unreadable; } || framework_failure_
 
 
 for inotify in ---disable-inotify ''; do
@@ -58,7 +58,7 @@ for inotify in ---disable-inotify ''; do
   {
     local delay="$1"
 
-    touch k || framework_failure
+    touch k || framework_failure_
     tail -s.1 --max-unchanged-stats=2 -F $inotify k > tail.out &
     pid=$!
     sleep $delay
index 1bf312310a4bf3895bd50c1765da1da0d5a0246d..578aedc5359f50c277347e2c86f6c9ee871ac1a8 100755 (executable)
@@ -19,7 +19,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ touch
 
-echo 60.000000000 > exp || framework_failure
+echo 60.000000000 > exp || framework_failure_
 
 
 # Before coreutils-7.7, this would fail, complaining of
index 9c9804363d95dc90946fbe1d3b154b0c1aa83326..9af34e1faea56c950c08760ddc5137195c1c9380 100755 (executable)
@@ -36,12 +36,12 @@ SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
 
 for d in $TOUCH_DIR_LIST; do
   rm -rf $d/a $d/b $d/c
-  > $d/a || framework_failure
-  test -f $d/a || framework_failure
-  > $d/b || framework_failure
-  test -f $d/b || framework_failure
-  > $d/c || framework_failure
-  test -f $d/c || framework_failure
+  > $d/a || framework_failure_
+  test -f $d/a || framework_failure_
+  > $d/b || framework_failure_
+  test -f $d/b || framework_failure_
+  > $d/c || framework_failure_
+  test -f $d/c || framework_failure_
 done
 
 echo sleeping for $SLEEP_SECONDS seconds...
index b73274627363982917e4431f19fb257c45ef4903..cf69ffcc8d8f6a8d5f93f7f21b2aaf6d6d2908f3 100755 (executable)
@@ -19,9 +19,9 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ touch
 
-ln -s nowhere dangling || framework_failure
-touch file || framework_failure
-ln -s file link || framework_failure
+ln -s nowhere dangling || framework_failure_
+touch file || framework_failure_
+ln -s file link || framework_failure_
 
 
 # These first tests should work on every platform.
index 159062b7b5744654b8da52437f5943f89ffcac21..d8b4ae64bc22ffabf22b792649ef95dbe0f715c1 100755 (executable)
 print_ver_ touch
 
 # Make sure t2 is newer than t1.
-touch -d '2000-01-01 00:00' t1 || framework_failure
-touch -d '2000-01-02 00:00' t2 || framework_failure
+touch -d '2000-01-01 00:00' t1 || framework_failure_
+touch -d '2000-01-02 00:00' t2 || framework_failure_
 
 set x `ls -t t1 t2`
-test "$*" = "x t2 t1" || framework_failure
+test "$*" = "x t2 t1" || framework_failure_
 
 
 chmod 0 t1
index b4d5d04b0421be374b145f8d2f089af23bc2e690..23c245df0721eed0c23ee765ab2d0a90dadbbc95 100755 (executable)
@@ -23,8 +23,8 @@ require_root_
 group_num=$(id -g $NON_ROOT_USERNAME)
 
 # Create a file owned by root, and writable by $NON_ROOT_USERNAME.
-echo > root-owned || framework_failure
-chgrp +$group_num . root-owned || framework_failure
+echo > root-owned || framework_failure_
+chgrp +$group_num . root-owned || framework_failure_
 chmod g+w root-owned
 
 # Ensure that the current directory is searchable by $NON_ROOT_USERNAME.
index 4745786f06ae735a3739fc26aed3cdc4bc125391..58545548cb62562942af3d23a6fc7eaf2206a2d6 100755 (executable)
@@ -20,8 +20,8 @@
 print_ver_ touch
 skip_if_root_
 
-: > read-only || framework_failure
-chmod 444 read-only || framework_failure
+: > read-only || framework_failure_
+chmod 444 read-only || framework_failure_
 
 
 touch read-only || fail=1
index 47f358bd17090a81735d4102cc4e45d3cd0ac210..a530eaa67aa77fadde18aed23935c28aec3bbf44 100755 (executable)
@@ -20,7 +20,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ touch
 
-TZ=UTC0 touch --date='2004-01-16 12:00 +0000' f || framework_failure
+TZ=UTC0 touch --date='2004-01-16 12:00 +0000' f || framework_failure_
 
 
 # Set times back by 5 days.
index 2e2d2a7473fa760b46ed1a9730d298424ecd0421..605668feb7e51014e221389821dbf697fdf3d327 100755 (executable)
 . "${srcdir=.}/init.sh"; path_prepend_ ../src
 print_ver_ touch
 
-ln -s nowhere dangling || framework_failure
-ln -s loop loop || framework_failure
-touch file || framework_failure
-ln -s file link1 || framework_failure
-mkdir dir || framework_failure
-ln -s dir link2 || framework_failure
+ln -s nowhere dangling || framework_failure_
+ln -s loop loop || framework_failure_
+touch file || framework_failure_
+ln -s file link1 || framework_failure_
+mkdir dir || framework_failure_
+ln -s dir link2 || framework_failure_
 
 
 # Trailing slash can only appear on directory or symlink-to-directory.