소스 검색

Remove unit test for sdup in main.c

main.c is not a part of the CivetWeb library, but only a part of the standalone executable. Which part of main.c is used is heavily depending on the system, since there are a lot of #ifdef for Windows, Linux and OSX. Windows has some graphical user interface, implemented in main.c, while Linux has not. Most parts of main.c can not be tested automatically (with the given framwork), but only manually.
Including small parts of main.c into the automatic unit test will distort test statistics.
bel 9 년 전
부모
커밋
a06ee625f5
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10 10
      test/CMakeLists.txt

+ 10 - 10
test/CMakeLists.txt

@@ -101,15 +101,15 @@ target_include_directories(
 target_link_libraries(exe-c-unit-tests c-library ${CHECK_LIBRARIES})
 add_dependencies(exe-c-unit-tests check-unit-test-framework)
 
-add_executable(civetweb-c-unit-test main.c)
-target_link_libraries(civetweb-c-unit-test
-  shared-c-unit-tests
-  public-func-c-unit-tests
-  public-server-c-unit-tests
-  private-c-unit-tests
-  exe-c-unit-tests
-  ${CHECK_LIBRARIES})
-add_dependencies(civetweb-c-unit-test check-unit-test-framework)
+#add_executable(civetweb-c-unit-test main.c)
+#target_link_libraries(civetweb-c-unit-test
+#  shared-c-unit-tests
+#  public-func-c-unit-tests
+#  public-server-c-unit-tests
+#  private-c-unit-tests
+#  exe-c-unit-tests
+#  ${CHECK_LIBRARIES})
+#add_dependencies(civetweb-c-unit-test check-unit-test-framework)
 
 # Add a check command that builds the dependent test program
 add_custom_target(check
@@ -161,7 +161,7 @@ civetweb_add_test(PublicServer "Handle Form")
 civetweb_add_test(PublicServer "HTTP Authentication")
 
 # Tests with main.c
-civetweb_add_test(EXE "Helper funcs")
+# civetweb_add_test(EXE "Helper funcs")
 
 
 # Add the coverage command(s)