Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #190 from darrenldl/dev
Browse files Browse the repository at this point in the history
Fixed corrupt function
  • Loading branch information
darrenldl committed May 6, 2019
2 parents 4a5f835 + 1cbd94c commit 6b63f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ corrupt() {
byte_cur=$(mktemp)
dd if=$2 of=$byte_orig bs=1 count=1 skip=$1 &>/dev/null
while true; do
dd if=/dev/zero of=$2 bs=1 count=1 seek=$1 conv=notrunc &>/dev/null
dd if=$2 of=$byte_cur bs=1 count=1 skip=$1 &>/dev/null
dd if=/dev/urandom of=$2 bs=1 count=1 seek=$1 conv=notrunc &>/dev/null
dd if=$2 of=$byte_cur bs=1 count=1 skip=$1 &>/dev/null
cmp $byte_cur $byte_orig &>/dev/null
if [[ $? != 0 ]]; then
break
Expand Down

0 comments on commit 6b63f2e

Please sign in to comment.