testsuite: fixes after randomconfig run

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/testsuite/runtest b/testsuite/runtest
index 9a4fccb..51575d9 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -74,8 +74,10 @@
 			*.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
 }