]> Dogcows Code - chaz/tar/commitdiff
Use genfile instead of dd, because on some systems /dev/zero is not available.
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 7 Dec 2006 14:34:15 +0000 (14:34 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 7 Dec 2006 14:34:15 +0000 (14:34 +0000)
tests/truncate.at

index bb4a4325823c0ab71617f4bbf5dd158b9fd674ef..3d2e6702f20599b1898dd51f81ff794a78fce7ee 100644 (file)
@@ -36,7 +36,7 @@ genfile --run 'tar -vcf bar foo baz' --checkpoint 10 --length 49995k --truncate
 echo Exit status: $?
 echo separator
 sleep 1
-dd if=/dev/zero of=foo bs=1024 seek=49995 count=5 >/dev/null 2>&1
+genfile --file foo --seek 49995k --length 5k --pattern=zeros
 tar dvf bar],
 [1],
 [foo
This page took 0.021228 seconds and 4 git commands to generate.