testsuite: fixes after randomconfig run
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 11 Aug 2011 08:40:12 +0000 (10:40 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 11 Aug 2011 08:40:12 +0000 (10:40 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
testsuite/runtest
testsuite/tar/tar-extracts-all-subdirs

index 9a4fccbbf89cb38714129cf346893ab0754bed1f..51575d9260b2e3935c837cd4da5d37468076010d 100755 (executable)
@@ -74,8 +74,10 @@ run_oldstyle_applet_tests()
                        *.mine) continue ;;    # svn-produced junk
                        *.r[0-9]*) continue ;; # svn-produced junk
                esac
-               run_applet_testcase "$applet" "$testcase" || status=1
-               total_failed=$((total_failed + status))
+               run_applet_testcase "$applet" "$testcase" || {
+                       status=1
+                       total_failed=$((total_failed + 1))
+               }
        done
        return $status
 }
index 886c37ce9eeb6aebb3ccc7faef50a23f8309cd4f..f5351f4f581eb9a35eb13030a41b00a1be73cafd 100644 (file)
@@ -9,4 +9,4 @@ find foo | sort >logfile.bb
 rm -rf foo/*
 tar xf foo.tar -C foo ./1/10
 find foo | sort >logfile.gnu
-cmp logfile.gnu logfile.bb
+diff -u logfile.gnu logfile.bb