]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid syntax-check failures in previous patch
authorPádraig Brady <P@draigBrady.com>
Wed, 8 Oct 2014 00:14:57 +0000 (01:14 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 8 Oct 2014 00:14:57 +0000 (01:14 +0100)
* tests/misc/od-j.sh: Non standard comparison order.
* tests/split/b-chunk.sh: Confusing input file name.
* tests/tail-2/tail-c.sh: Redundant require ulimit.

tests/misc/od-j.sh
tests/split/b-chunk.sh
tests/tail-2/tail-c.sh

index a40a99ff7c245706601151cb41064699dc21fe37..1a473287634535f3171ef8534b14c96fcc9a53b0 100755 (executable)
@@ -27,13 +27,13 @@ for file in ${srcdir=.}/tests/init.sh /proc/version /sys/kernel/profiling; do
 
   od -An $file > exp || fail=1
   od -An -j $bytes $file $file > out || fail=1
-  compare out exp || fail=1
+  compare exp out || fail=1
 
   od -An -j 4096 copy copy > exp1 2> experr1; expstatus=$?
   od -An -j 4096 $file $file > out1 2> err1; status=$?
   test $status -eq $expstatus || fail=1
-  compare out1 exp1 || fail=1
-  compare err1 experr1 || fail=1
+  compare exp1 out1 || fail=1
+  compare experr1 err1 || fail=1
 done
 
 Exit $fail
index fefa0900d8a1192bab2ed17373d77b86067bc46e..5938a744425fbc118ee00cff6d15b49d0ead1480 100755 (executable)
@@ -29,16 +29,16 @@ rm -f x??
 split -e -n 10 /dev/null || fail=1
 stat x?? 2>/dev/null && fail=1
 
-printf '1\n2\n3\n4\n5\n' > in || framework_failure_
+printf '1\n2\n3\n4\n5\n' > input || framework_failure_
 
-for file in in /proc/version /sys/kernel/profiling; do
+for file in input /proc/version /sys/kernel/profiling; do
   split -n 3 $file > out || fail=1
   split -n 1/3 $file > b1 || fail=1
   split -n 2/3 $file > b2 || fail=1
   split -n 3/3 $file > b3 || fail=1
 
   case $file in
-    in)
+    input)
       printf '1\n2' > exp-1
       printf '\n3\n' > exp-2
       printf '4\n5\n' > exp-3
index cdbaa46a9450e10c2ffb7cc6a545cf246477abab..438509ef8c02a0c359277d16a4f5bca5e234d190 100755 (executable)
@@ -18,7 +18,6 @@
 
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ tail
-require_ulimit_v_
 
 # Make sure it works on funny files in /proc and /sys.