aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/nginx.c')
-rw-r--r--src/core/nginx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 484919862..31c90bd6f 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -239,7 +239,9 @@ main(int argc, char *const *argv)
ngx_write_fd(ngx_stderr_fileno, "built by " NGX_COMPILER CRLF,
sizeof("built by " NGX_COMPILER CRLF) - 1);
#endif
- return 0;
+ if (!ngx_test_config) {
+ return 0;
+ }
}
if (ngx_test_config) {