nginx-0.3.42-RELEASE import

    *) Feature: the "bind" option of the "listen" directive in IMAP/POP3
       proxy.

    *) Bugfix: if the same capture in the "rewrite" directive was used more
       then once.

    *) Bugfix: the $sent_http_content_type, $sent_http_content_length,
       $sent_http_last_modified, $sent_http_connection,
       $sent_http_keep_alive, and $sent_http_transfer_encoding variables
       were not written to access log.

    *) Bugfix: the $sent_http_cache_control returned value of the single
       "Cache-Control" response header line.
diff --git a/src/core/nginx.c b/src/core/nginx.c
index 4849198..31c90bd 100644
--- a/src/core/nginx.c
+++ b/src/core/nginx.c
@@ -239,7 +239,9 @@
         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) {