]> git.kaiwu.me - njs.git/commitdiff
Fixed unit tests exit code.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 26 Apr 2018 17:21:44 +0000 (20:21 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 26 Apr 2018 17:21:44 +0000 (20:21 +0300)
Previously, 0 was returned regardless of failures.

njs/test/njs_unit_test.c

index 2ffa51a93cac4f83e355759c82245179a25134af..b921bbd3b098396ab662372cb3b76354fee39ba1 100644 (file)
@@ -9878,7 +9878,7 @@ done:
         printf("njs unit tests passed\n");
     }
 
-    return NXT_OK;
+    return rc;
 }