瀏覽代碼

Add ifdef to test, for configurations without caching

bel 9 年之前
父節點
當前提交
1412ac54a3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/public_server.c

+ 2 - 2
test/public_server.c

@@ -2045,14 +2045,14 @@ START_TEST(test_http_auth)
 {
 {
 #if !defined(NO_FILES)
 #if !defined(NO_FILES)
 	const char *OPTIONS[] = {
 	const char *OPTIONS[] = {
-#if !defined(NO_FILES)
 		"document_root",
 		"document_root",
 		".",
 		".",
-#endif
 		"listening_ports",
 		"listening_ports",
 		"8080",
 		"8080",
+#if !defined(NO_CACHING)
 		"static_file_max_age",
 		"static_file_max_age",
 		"0",
 		"0",
+#endif
 		NULL,
 		NULL,
 	};
 	};
 	struct mg_context *ctx;
 	struct mg_context *ctx;