소스 검색

AppVeyor: Try to find segfault in debug build (not reproducible in local debugger) (5/?)

bel2125 7 년 전
부모
커밋
d361cf165b
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      test/private.c

+ 3 - 2
test/private.c

@@ -506,16 +506,17 @@ START_TEST(test_mg_vsnprintf)
 	ck_assert_str_eq(buf, "      123");
 	ck_assert_int_eq(is_trunc, 0);
 /*
+//SegFault in debug build on AppVeyor (but not in local debugger) ???
 	is_trunc = 777;
 	mg_snprintf(NULL, &is_trunc, buf, 9, "%9i", 123);
 	ck_assert_str_eq(buf, "      12");
 	ck_assert_int_eq(is_trunc, 1);
-
+*/
 	is_trunc = 777;
 	mg_snprintf(NULL, &is_trunc, buf, 8, "%9i", 123);
 	ck_assert_str_eq(buf, "      1");
 	ck_assert_int_eq(is_trunc, 1);
-
+/*
 	is_trunc = 777;
 	mg_snprintf(NULL, &is_trunc, buf, 7, "%9i", 123);
 	ck_assert_str_eq(buf, "      ");