Browse Source

Correct some #ifdef conditions in the unit test

bel 10 years ago
parent
commit
3257b82e68
1 changed files with 4 additions and 1 deletions
  1. 4 1
      test/public_server.c

+ 4 - 1
test/public_server.c

@@ -516,9 +516,12 @@ START_TEST(test_request_handlers)
 	const char *plain_file_content;
 	const char *encoded_file_content;
 	int opt_idx = 0;
+
+#if !defined(NO_SSL)
 	const char *ssl_cert = locate_ssl_cert();
+#endif
 
-#ifdef USE_WEBSOCKET
+#if defined(USE_WEBSOCKET)
 	struct tclient_data ws_client1_data = {NULL, 0, 0};
 	struct tclient_data ws_client2_data = {NULL, 0, 0};
 	struct tclient_data ws_client3_data = {NULL, 0, 0};