Browse Source

Use genfile instead of dd, because on some systems /dev/zero is not available.

Sergey Poznyakoff 18 years ago
parent
commit
e35d05b1d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/truncate.at

+ 1 - 1
tests/truncate.at

@@ -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