diff options
author | Jim Meyering <meyering@redhat.com> | 2011-01-28 19:23:21 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-01-28 23:19:45 +0100 |
commit | 68a734d66bbe72d5d4133c386fa77069dd77fb8c (patch) | |
tree | 41bee2c43451851d824930d5ebb96f04d7e40186 /tests/touch | |
parent | 034e496e983d286011fa5f6058b541b163ba9afd (diff) | |
download | coreutils-68a734d66bbe72d5d4133c386fa77069dd77fb8c.tar.xz |
tests: remove obsolete uses of "$$" in temporary file names
Those were useful when tests might have been run in the same
directory and in parallel. Now, each test is run in a newly-
created empty directory.
* tests/cp/backup-1: Remove obsolete uses of "$$".
* tests/cp/same-file: Likewise.
* tests/dd/misc: Likewise.
* tests/mv/part-symlink: Likewise.
* tests/mv/to-symlink: Likewise.
* tests/touch/fail-diag: Likewise.
Diffstat (limited to 'tests/touch')
-rwxr-xr-x | tests/touch/fail-diag | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/touch/fail-diag b/tests/touch/fail-diag index a4c81c624..a2613fe23 100755 --- a/tests/touch/fail-diag +++ b/tests/touch/fail-diag @@ -20,15 +20,11 @@ print_ver_ touch skip_if_root_ -d1=no-$$ -dir=/$d1/such-dir -# Ensure that $d1 doesn't already exist. -ls -d $d1 2> /dev/null && framework_failure +file=/no-such-dir/file - -touch $dir > out 2>&1 && fail=1 +touch $file > out 2>&1 && fail=1 cat <<EOF > exp -touch: cannot touch \`$dir': No such file or directory +touch: cannot touch \`$file': No such file or directory EOF compare out exp || fail=1 |