Compile with clang-6.0

This commit is contained in:
Tatsuhiro Tsujikawa 2018-06-09 16:27:43 +09:00
parent 572735e496
commit 73106b0d0d
2 changed files with 8 additions and 8 deletions

View File

@ -43,13 +43,13 @@ int main() {
/* initialize the CUnit test registry */
if (CUE_SUCCESS != CU_initialize_registry())
return CU_get_error();
return (int)CU_get_error();
/* add a suite to the registry */
pSuite = CU_add_suite("libnghttp2_TestSuite", init_suite1, clean_suite1);
if (NULL == pSuite) {
CU_cleanup_registry();
return CU_get_error();
return (int)CU_get_error();
}
/* add the tests to the suite */
@ -62,7 +62,7 @@ int main() {
!CU_add_test(pSuite, "failmalloc_frame", test_nghttp2_frame) ||
!CU_add_test(pSuite, "failmalloc_hd", test_nghttp2_hd)) {
CU_cleanup_registry();
return CU_get_error();
return (int)CU_get_error();
}
/* Run all tests using the CUnit Basic interface */
@ -74,6 +74,6 @@ int main() {
return (int)num_tests_failed;
} else {
printf("CUnit Error: %s\n", CU_get_error_msg());
return CU_get_error();
return (int)CU_get_error();
}
}

View File

@ -55,13 +55,13 @@ int main() {
/* initialize the CUnit test registry */
if (CUE_SUCCESS != CU_initialize_registry())
return CU_get_error();
return (int)CU_get_error();
/* add a suite to the registry */
pSuite = CU_add_suite("libnghttp2_TestSuite", init_suite1, clean_suite1);
if (NULL == pSuite) {
CU_cleanup_registry();
return CU_get_error();
return (int)CU_get_error();
}
/* add the tests to the suite */
@ -411,7 +411,7 @@ int main() {
test_nghttp2_bufs_next_present) ||
!CU_add_test(pSuite, "bufs_realloc", test_nghttp2_bufs_realloc)) {
CU_cleanup_registry();
return CU_get_error();
return (int)CU_get_error();
}
/* Run all tests using the CUnit Basic interface */
@ -423,6 +423,6 @@ int main() {
return (int)num_tests_failed;
} else {
printf("CUnit Error: %s\n", CU_get_error_msg());
return CU_get_error();
return (int)CU_get_error();
}
}