Rename test function.
This commit is contained in:
parent
e1715cc40c
commit
24c7898ffe
@ -54,7 +54,7 @@ int cleanup_suite() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_unicode() {
|
void test_instruction_parse() {
|
||||||
|
|
||||||
int rfd, wfd;
|
int rfd, wfd;
|
||||||
int fd[2], childpid;
|
int fd[2], childpid;
|
||||||
@ -126,22 +126,22 @@ void test_unicode() {
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
CU_pSuite pSuite;
|
CU_pSuite suite;
|
||||||
|
|
||||||
/* Init registry */
|
/* Init registry */
|
||||||
if (CU_initialize_registry() != CUE_SUCCESS)
|
if (CU_initialize_registry() != CUE_SUCCESS)
|
||||||
return CU_get_error();
|
return CU_get_error();
|
||||||
|
|
||||||
/* Add protocol test suite */
|
/* Add protocol test suite */
|
||||||
pSuite = CU_add_suite("protocol", init_suite, cleanup_suite);
|
suite = CU_add_suite("protocol", init_suite, cleanup_suite);
|
||||||
if (pSuite == NULL) {
|
if (suite == NULL) {
|
||||||
CU_cleanup_registry();
|
CU_cleanup_registry();
|
||||||
return CU_get_error();
|
return CU_get_error();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add tests */
|
/* Add tests */
|
||||||
if (
|
if (
|
||||||
CU_add_test(pSuite, "unicode-support", test_unicode) == NULL
|
CU_add_test(suite, "instruction-parse", test_instruction_parse) == NULL
|
||||||
) {
|
) {
|
||||||
CU_cleanup_registry();
|
CU_cleanup_registry();
|
||||||
return CU_get_error();
|
return CU_get_error();
|
||||||
|
Loading…
Reference in New Issue
Block a user