summaryrefslogtreecommitdiff
path: root/Userland/test-js.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-10-18 21:31:26 +0100
committerAndreas Kling <kling@serenityos.org>2020-10-19 11:29:55 +0200
commit3a72a93b9d1950c1fb552a5acb04e6cba16a43b4 (patch)
tree93792a4601ff1b8d8d03a3b5af6de6bf8373507f /Userland/test-js.cpp
parent03b817b13011219f0b46013f314e97b135994a56 (diff)
downloadserenity-3a72a93b9d1950c1fb552a5acb04e6cba16a43b4.zip
test-js: Exit with 1 if any test failed
Diffstat (limited to 'Userland/test-js.cpp')
-rw-r--r--Userland/test-js.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/test-js.cpp b/Userland/test-js.cpp
index 931aa9f0a1..3abd65dd1d 100644
--- a/Userland/test-js.cpp
+++ b/Userland/test-js.cpp
@@ -636,5 +636,5 @@ int main(int argc, char** argv)
vm = nullptr;
- return 0;
+ return TestRunner::the()->counts().tests_failed > 0 ? 1 : 0;
}