From 3a72a93b9d1950c1fb552a5acb04e6cba16a43b4 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 18 Oct 2020 21:31:26 +0100 Subject: test-js: Exit with 1 if any test failed --- Userland/test-js.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/test-js.cpp') 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; } -- cgit v1.2.3