Pārlūkot izejas kodu

Fix the unit test environment check

bel 10 gadi atpakaļ
vecāks
revīzija
358c7dca50
1 mainītis faili ar 3 papildinājumiem un 5 dzēšanām
  1. 3 5
      test/public_server.c

+ 3 - 5
test/public_server.c

@@ -80,7 +80,7 @@ START_TEST(test_the_test_environment)
 	if (f) {
 	if (f) {
 		fclose(f);
 		fclose(f);
 	} else {
 	} else {
-		ck_abort_msg("%s not found", buf);
+		fprintf(stderr, "%s not found", buf);
 	}
 	}
 
 
 /* Check the test dir */
 /* Check the test dir */
@@ -95,10 +95,8 @@ START_TEST(test_the_test_environment)
 	memset(&st, 0, sizeof(st));
 	memset(&st, 0, sizeof(st));
 	ret = stat(buf, &st);
 	ret = stat(buf, &st);
 
 
-	if (!ret) {
-		fclose(f);
-	} else {
-		ck_abort_msg("%s not found", buf);
+	if (ret) {
+		fprintf(stderr, "%s not found", buf);
 	}
 	}
 }
 }
 END_TEST
 END_TEST