run-javascriptcore-tests: runJSCStressTests shouldn't exit the program
https://bugs.webkit.org/show_bug.cgi?id=209887

Reviewed by Darin Adler.

* Scripts/run-javascriptcore-tests:
(runJSCStressTests): Exit the function, not the program.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@259372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Tools/ChangeLog b/Tools/ChangeLog
index 1986ceb..f25bbc5 100644
--- a/Tools/ChangeLog
+++ b/Tools/ChangeLog
@@ -1,3 +1,13 @@
+2020-04-01  Jonathan Bedard  <jbedard@apple.com>
+
+        run-javascriptcore-tests: runJSCStressTests shouldn't exit the program
+        https://bugs.webkit.org/show_bug.cgi?id=209887
+
+        Reviewed by Darin Adler.
+
+        * Scripts/run-javascriptcore-tests:
+        (runJSCStressTests): Exit the function, not the program.
+
 2020-04-01  Chris Dumez  <cdumez@apple.com>
 
         Regression(r257963) didFailProvisionalNavigation delegate no longer gets called when cancelling a cross-site provisional navigation
diff --git a/Tools/Scripts/run-javascriptcore-tests b/Tools/Scripts/run-javascriptcore-tests
index 6a5d1d1..3238298 100755
--- a/Tools/Scripts/run-javascriptcore-tests
+++ b/Tools/Scripts/run-javascriptcore-tests
@@ -810,7 +810,7 @@
     }
 
     if (!$hasTestsToRun) {
-        exit(0);
+        return;
     }
 
     print "Running: " . join(" ", @jscStressDriverCmd) . "\n";