[njs] Fixed unit tests exit code.

Dmitry Volyntsev xeioex at nginx.com
Thu Apr 26 17:36:54 UTC 2018


details:   http://hg.nginx.org/njs/rev/4e647f0bf155
branches:  
changeset: 510:4e647f0bf155
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu Apr 26 20:21:44 2018 +0300
description:
Fixed unit tests exit code.

Previously, 0 was returned regardless of failures.

diffstat:

 njs/test/njs_unit_test.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1305b1701099 -r 4e647f0bf155 njs/test/njs_unit_test.c
--- a/njs/test/njs_unit_test.c	Thu Apr 26 19:58:26 2018 +0300
+++ b/njs/test/njs_unit_test.c	Thu Apr 26 20:21:44 2018 +0300
@@ -9878,7 +9878,7 @@ done:
         printf("njs unit tests passed\n");
     }
 
-    return NXT_OK;
+    return rc;
 }
 
 


More information about the nginx-devel mailing list