소스 검색

Unit test: Remove check for no longer required test directory

bel2125 6 년 전
부모
커밋
47155a5708
1개의 변경된 파일1개의 추가작업 그리고 18개의 파일을 삭제
  1. 1 18
      unittest/public_server.c

+ 1 - 18
unittest/public_server.c

@@ -183,24 +183,7 @@ START_TEST(test_the_test_environment)
 	if (f) {
 		fclose(f);
 	} else {
-		fprintf(stderr, "%s not found", buf);
-		exit(1); /* some path is not correct --> test will not work */
-	}
-
-/* Check the test dir */
-#ifdef _WIN32
-	strcpy(buf, wd);
-	strcat(buf, "\\test");
-#else
-	strcpy(buf, wd);
-	strcat(buf, "/test");
-#endif
-
-	memset(&st, 0, sizeof(st));
-	ret = stat(buf, &st);
-
-	if (ret) {
-		fprintf(stderr, "%s not found", buf);
+		fprintf(stderr, "Certificate %s not found\n", buf);
 		exit(1); /* some path is not correct --> test will not work */
 	}