]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: correct part of fiemap-perf
authorJim Meyering <meyering@redhat.com>
Wed, 2 Feb 2011 11:02:22 +0000 (12:02 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 2 Feb 2011 11:02:22 +0000 (12:02 +0100)
* tests/cp/fiemap-perf: Correct erroneous added test.
Since nonexistent names were used, the final test ended up
being "test =", which would always "succeed".

tests/cp/fiemap-perf

index 62272439b88cee5403af2bcafab251a9efb1916a..7369a7d1b52ecb9ccb2102b3fd02507ba49e9a45 100755 (executable)
@@ -31,6 +31,6 @@ timeout 10 cp f f2 || fail=1
 
 # Ensure that the sparse file copied through fiemap has the same size
 # in bytes as the original.
-test $(stat --printf %s sparse) = $(stat --printf %s fiemap) || fail=1
+test "$(stat --printf %s f)" = "$(stat --printf %s f2)" || fail=1
 
 Exit $fail