From 78d7d7b7464576d0c7f899a7ea16959e3a5b1365 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 23 May 1999 13:36:37 +0000 Subject: [PATCH] *** empty log message *** --- tests/mv/force | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 tests/mv/force diff --git a/tests/mv/force b/tests/mv/force new file mode 100755 index 0000000..407a482 --- /dev/null +++ b/tests/mv/force @@ -0,0 +1,40 @@ +#!/bin/sh +# move a file onto itself with --force + +if test "$VERBOSE" = yes; then + set -x + mv --version +fi + +ff=force-file + +framework_failure=0 +rm -f $ff || framework_failure=1 +echo force-contents > $ff || framework_failure=1 + +if test $framework_failure = 1; then + echo 'failure in testing framework' + exit 1 +fi + +# Make sure we get English translations. +LANGUAGE=C +export LANGUAGE +LC_ALL=C +export LC_ALL +LANG=C +export LANG + +# This mv command should exit nonzero. +mv --force $ff $ff > out 2>&1 && fail=1 + +cat > exp <