]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix dd/skip-seek-past-file to work on ecryptfs
authorPádraig Brady <P@draigBrady.com>
Mon, 14 Sep 2009 00:38:03 +0000 (01:38 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 14 Sep 2009 13:22:02 +0000 (14:22 +0100)
* tests/dd/skip-seek-past-file: Require sparse support
to ensure that when we're checking if we can create an
$OFF_T_MAX length file, that we don't actually allocate
any space.  This was an issue on ecryptfs and was reported
by Bert Wesarg.

tests/dd/skip-seek-past-file

index cb36d08d954b6892e36224aefbd610832be69f66..937f99e17ac32f6e564c83d060b956ded7fcf631 100755 (executable)
@@ -22,7 +22,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 . $srcdir/test-lib.sh
-eval $(getlimits) #for OFF_T limits
+require_sparse_support_ # for `truncate --size=$OFF_T_MAX`
+eval $(getlimits) # for OFF_T limits
 
 fail=0