Changeset 5ebff60 for tests/check_help.c
- Timestamp:
- 2015-02-20T22:50:54Z (9 years ago)
- Branches:
- master
- Children:
- 0b9daac, 3d45471, 7733b8c
- Parents:
- af359b4
- git-author:
- Indent <please@…> (19-02-15 05:47:20)
- git-committer:
- dequis <dx@…> (20-02-15 22:50:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/check_help.c
raf359b4 r5ebff60 8 8 9 9 START_TEST(test_help_initfree) 10 help_t *h, *r;11 12 13 10 help_t * h, *r; 11 r = help_init(&h, "/dev/null"); 12 fail_if(r == NULL); 13 fail_if(r != h); 14 14 15 16 15 help_free(&h); 16 fail_if(h != NULL); 17 17 END_TEST 18 18 19 19 START_TEST(test_help_nonexistent) 20 help_t *h, *r;21 22 23 20 help_t * h, *r; 21 r = help_init(&h, "/dev/null"); 22 fail_unless(help_get(&h, "nonexistent") == NULL); 23 fail_if(r == NULL); 24 24 END_TEST 25 25 26 Suite *help_suite 26 Suite *help_suite(void) 27 27 { 28 28 Suite *s = suite_create("Help"); 29 29 TCase *tc_core = tcase_create("Core"); 30 suite_add_tcase (s, tc_core); 31 tcase_add_test (tc_core, test_help_initfree); 32 tcase_add_test (tc_core, test_help_nonexistent); 30 31 suite_add_tcase(s, tc_core); 32 tcase_add_test(tc_core, test_help_initfree); 33 tcase_add_test(tc_core, test_help_nonexistent); 33 34 return s; 34 35 }
Note: See TracChangeset
for help on using the changeset viewer.