From 40cb20c7be96a9713520f7a26bb6965ada4e68ef Mon Sep 17 00:00:00 2001 From: Richard Kettlewell Date: Fri, 30 May 2014 15:43:28 +0100 Subject: [PATCH] Support feeble FreeBSD versions of dd and truncate in tests --- t-corrupt | 2 +- t-extended | 2 +- t-truncated | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/t-corrupt b/t-corrupt index 6139bab..333a083 100755 --- 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 diff --git a/t-extended b/t-extended index 754867a..b06711f 100755 --- a/t-extended +++ b/t-extended @@ -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 diff --git a/t-truncated b/t-truncated index 358f02b..b32d6dc 100755 --- a/t-truncated +++ b/t-truncated @@ -19,7 +19,7 @@ set -e rm -f testfile ./vbig --seed chahthaiquiyouto --create testfile 65536 -truncate --size=32768 testfile +truncate -s 32768 testfile if ./vbig --seed chahthaiquiyouto --verify testfile 65536 2>testoutput; then echo >&2 ERROR: verify unexpectedly succeeded exit 1 -- 2.30.2