* testsuite/runtest (run_applet_testcase): Return test case status, not
  process ID.
diff --git a/testsuite/runtest b/testsuite/runtest
index 8fb92e6..2cf85f5 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -53,10 +53,10 @@
 
 	if . ../$testcase >/dev/null 2>&1; then
 		show_result ${X}PASS $testname
-		status=$!
+		status=$?
 	else
 		show_result ${X}FAIL $testname
-		status=$!
+		status=$?
 	fi
 
 	popd >/dev/null