[git commit] testsuite: fixes after randomconfig run

Denys Vlasenko vda.linux at googlemail.com
Thu Aug 11 08:40:12 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=2969e24e2a808d98dee59982302ffb89e968af49
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 testsuite/runtest                      |    6 ++++--
 testsuite/tar/tar-extracts-all-subdirs |    2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/testsuite/runtest b/testsuite/runtest
index 9a4fccb..51575d9 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -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
 }
diff --git a/testsuite/tar/tar-extracts-all-subdirs b/testsuite/tar/tar-extracts-all-subdirs
index 886c37c..f5351f4 100644
--- a/testsuite/tar/tar-extracts-all-subdirs
+++ b/testsuite/tar/tar-extracts-all-subdirs
@@ -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
-- 
1.7.3.4



More information about the busybox-cvs mailing list