Commit a5655d7d authored by Nils Goroll's avatar Nils Goroll

fix test failures due to truncated data inputs

with high concurrency, possibly related to context switching,
dd would read a short block.

Fix this using the fullblock flag
parent 0d728bb7
......@@ -23,9 +23,9 @@ for i in ${sz[@]} ; do
if [[ -f ${i} ]] ; then
touch ${i}
else
dd if=/dev/zero bs=${blk} count=1 | \
dd if=/dev/zero iflag=fullblock bs=${blk} count=1 | \
openssl aes-128-cbc -k $i -nosalt -nopad | \
dd of=${i} bs=${i} count=1
dd iflag=fullblock of=${i} bs=${i} count=1
fi
if [[ -f ${i}.b64 ]] ; then
......@@ -39,7 +39,7 @@ for i in ${sz[@]} ; do
if [[ -f ${i}_${j} ]] ; then
touch ${i}_${j}
else
dd if=${i} of=${i}_${j} bs=${j} count=1
dd if=${i} iflag=fullblock of=${i}_${j} bs=${j} count=1
fi
if [[ -f ${i}_${j}.b64 ]] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment