소스 검색

Correct some #ifdef conditions in the unit test

bel 10 년 전
부모
커밋
3257b82e68
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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};