diff options
author | Pádraig Brady <P@draigBrady.com> | 2009-08-30 01:27:45 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2009-08-30 10:58:13 +0100 |
commit | 56300b1dc28f4acef88821364419933459d931f6 (patch) | |
tree | 7431d394b59717842cbb8e3617705428849134db /tests/mv/part-fail | |
parent | 0a859a6cb0000f3662f1b06c151d80e1d764f983 (diff) | |
download | coreutils-56300b1dc28f4acef88821364419933459d931f6.tar.xz |
tests: don't misbehave if $TMPDIR contains spaces
* tests/misc/xattr: Add quotes.
* tests/mv/acl: Likewise.
* tests/mv/backup-is-src: Likewise.
* tests/mv/hard-link-1: Likewise.
* tests/mv/leak-fd: Likewise.
* tests/mv/mv-special-1: Likewise.
* tests/mv/part-fail: Likewise.
* tests/mv/part-hardlink: Likewise.
* tests/mv/part-rename: Likewise.
* tests/mv/part-symlink: Likewise.
* tests/mv/partition-perm: Likewise.
* tests/mv/sticky-to-xpart: Likewise.
Diffstat (limited to 'tests/mv/part-fail')
-rwxr-xr-x | tests/mv/part-fail | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mv/part-fail b/tests/mv/part-fail index b1048e965..290864dff 100755 --- a/tests/mv/part-fail +++ b/tests/mv/part-fail @@ -29,12 +29,12 @@ 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 fail=0 -mv -f k $other_partition_tmpdir 2> out && fail=1 +mv -f k "$other_partition_tmpdir" 2> out && fail=1 cat <<EOF > exp mv: inter-device move failed: \`k' to \`$other_partition_tmpdir/k'; unable to remove target: Permission denied EOF |