chiark / gitweb /
Support feeble FreeBSD versions of dd and truncate in tests master
authorRichard Kettlewell <rjk@greenend.org.uk>
Fri, 30 May 2014 14:43:28 +0000 (15:43 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Fri, 30 May 2014 14:43:28 +0000 (15:43 +0100)
t-corrupt
t-extended
t-truncated

index 6139bab6807646fa24496a7149bc8b99c7d07039..333a0834fea56e6d89f11418951491107cddd085 100755 (executable)
--- a/t-corrupt
+++ b/t-corrupt
@@ -19,7 +19,7 @@
 set -e
 rm -f testfile
 ./vbig --seed chahthaiquiyouto --create testfile 65536
-dd if=/dev/zero of=testfile bs=256 count=1 seek=1 conv=nocreat,notrunc status=noxfer
+dd if=/dev/zero of=testfile bs=256 count=1 seek=1 conv=notrunc
 if ./vbig --seed chahthaiquiyouto --verify testfile 65536 2>testoutput; then
   echo >&2 ERROR: verify unexpectedly succeeded
   exit 1
index 754867ac6d28c7f94d6d751baeb109a548fb4ac4..b06711fdf5c0c0cc0d8981b01fc117eb1cd49379 100755 (executable)
@@ -19,7 +19,7 @@
 set -e
 rm -f testfile
 ./vbig --seed chahthaiquiyouto --create testfile 65536
-dd if=/dev/zero of=testfile bs=256 count=1 seek=1 conv=nocreat,notrunc oflag=append status=noxfer
+dd if=/dev/zero bs=256 count=1 seek=1 conv=notrunc >> testfile
 if ./vbig --seed chahthaiquiyouto --verify testfile 65536 2>testoutput; then
   echo >&2 ERROR: verify unexpectedly succeeded
   exit 1
index 358f02bb9c0fa7ea9309bc7be7da71ddbea1e498..b32d6dc72c741e04e075a3003b2e20e5dd821cfa 100755 (executable)
@@ -19,7 +19,7 @@
 set -e
 rm -f testfile
 ./vbig --seed chahthaiquiyouto --create testfile 65536
-truncate --size=32768 testfile
+truncate -32768 testfile
 if ./vbig --seed chahthaiquiyouto --verify testfile 65536 2>testoutput; then
   echo >&2 ERROR: verify unexpectedly succeeded
   exit 1