OSDN Git Service

tests: adjust t9021-maxima not to fail with 2048-byte sectors
authorJim Meyering <meyering@redhat.com>
Sun, 31 Jan 2010 14:52:02 +0000 (15:52 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 31 Jan 2010 14:52:50 +0000 (15:52 +0100)
* tests/t9021-maxima.sh: At 10,000*512 bytes, the backing file
was too small to support a test simulating a sector size of 2048 bytes.
Use 10,000*$sector_size bytes instead.

tests/t9021-maxima.sh

index 999a696..eb44eea 100755 (executable)
@@ -23,6 +23,7 @@ fi
 
 : ${srcdir=.}
 . $srcdir/t-lib.sh
+ss=$sector_size_
 
 fail=0
 dev=dev-file
@@ -33,7 +34,7 @@ export PATH
 for t in msdos gpt dvh sun mac bsd amiga loop pc98; do
     echo $t
     rm -f $dev
-    dd if=/dev/zero of=$dev bs=512 count=1 seek=10000 || { fail=1; continue; }
+    dd if=/dev/zero of=$dev bs=$ss count=1 seek=10000 || { fail=1; continue; }
     parted -s $dev mklabel $t || { fail=1; continue; }
 
     #case $t in pc98) sleep 999d;; esac