Browse Source

Add ifdef to test, for configurations without caching

bel 9 years ago
parent
commit
1412ac54a3
1 changed files with 2 additions and 2 deletions
  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)
 	const char *OPTIONS[] = {
-#if !defined(NO_FILES)
 		"document_root",
 		".",
-#endif
 		"listening_ports",
 		"8080",
+#if !defined(NO_CACHING)
 		"static_file_max_age",
 		"0",
+#endif
 		NULL,
 	};
 	struct mg_context *ctx;