Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/sbin/resize_ffs Replace uses of 'jot' with 'seq'. Thi...



details:   https://anonhg.NetBSD.org/src/rev/5257e35662fd
branches:  trunk
changeset: 760468:5257e35662fd
user:      riz <riz%NetBSD.org@localhost>
date:      Wed Jan 05 18:13:54 2011 +0000

description:
Replace uses of 'jot' with 'seq'.  This is primarily to work around
a qemu-running-on-netbsd problem with FP which causes 'jot' to output
incorrect sequences, which were causing failures on one of the auto-testing
platforms.  While 'seq' also uses FP, it does not seem to be affected in
this particular usage

As a bonus, however, 'seq' is actually a better fit (the commandline is
more intuitive) for the way it is used in these tests.

diffstat:

 tests/sbin/resize_ffs/common.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r a006b6ca1bde -r 5257e35662fd tests/sbin/resize_ffs/common.sh
--- a/tests/sbin/resize_ffs/common.sh   Wed Jan 05 18:05:32 2011 +0000
+++ b/tests/sbin/resize_ffs/common.sh   Wed Jan 05 18:13:54 2011 +0000
@@ -63,7 +63,7 @@
 copy_multiple ()
 {
        local i
-       for i in $(jot $1); do
+       for i in $(seq $1); do
                copy_data $i
        done
 }
@@ -78,7 +78,7 @@
 remove_multiple ()
 {
        local i
-       for i in $(jot $1); do
+       for i in $(seq $1); do
                remove_data $i
        done
 }
@@ -95,7 +95,7 @@
 check_data_range ()
 {
        local i
-       for i in $(jot $(($2-$1+1)) $1); do
+       for i in $(seq $1 $2); do
                check_data $i
        done
 }



Home | Main Index | Thread Index | Old Index