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/cp/backup-1 | |
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/cp/backup-1')
-rwxr-xr-x | tests/cp/backup-1 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/cp/backup-1 b/tests/cp/backup-1 index a3ed9c37b..34670bd1b 100755 --- a/tests/cp/backup-1 +++ b/tests/cp/backup-1 @@ -21,10 +21,8 @@ print_ver_ cp suffix=.b -file=b1.$$ +file=F file_backup="$file$suffix" -temp_files="$file $file_backup" -rm -f $temp_files echo test > $file || fail=1 |