- Timestamp:
- 2014-04-20T16:59:23Z (11 years ago)
- Branches:
- master
- Children:
- 6a6d7d8
- Parents:
- b4008a5
- Location:
- tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/check.c
rb4008a5 r3e16fb8 4 4 #include <check.h> 5 5 #include <locale.h> 6 #include <sys/time.h> 6 7 #include "bitlbee.h" 7 8 #include "testsuite.h" … … 82 83 { NULL } 83 84 }; 84 int i;85 85 86 86 pc = g_option_context_new(""); -
tests/check_help.c
rb4008a5 r3e16fb8 12 12 fail_if(r == NULL); 13 13 fail_if(r != h); 14 14 15 15 help_free(&h); 16 16 fail_if(h != NULL); … … 21 21 r = help_init(&h, "/dev/null"); 22 22 fail_unless(help_get(&h, "nonexistent") == NULL); 23 fail_if(r == NULL); 23 24 END_TEST 24 25 -
tests/check_md5.c
rb4008a5 r3e16fb8 37 37 tcase_fn_start (tests[i].str, __FILE__, __LINE__); 38 38 md5_state_t state; 39 int di;40 39 41 40 md5_init(&state); -
tests/check_set.c
rb4008a5 r3e16fb8 26 26 27 27 START_TEST(test_set_find_unknown) 28 set_t *s = NULL , *t;28 set_t *s = NULL; 29 29 fail_unless (set_find(&s, "foo") == NULL); 30 30 END_TEST … … 69 69 START_TEST(test_set_get_str_value) 70 70 void *data = "data"; 71 set_t *s = NULL , *t;72 t =set_add(&s, "name", "default", NULL, data);71 set_t *s = NULL; 72 set_add(&s, "name", "default", NULL, data); 73 73 set_setstr(&s, "name", "foo"); 74 74 fail_unless(strcmp(set_getstr(&s, "name"), "foo") == 0); … … 82 82 START_TEST(test_setint) 83 83 void *data = "data"; 84 set_t *s = NULL , *t;85 t =set_add(&s, "name", "10", NULL, data);84 set_t *s = NULL; 85 set_add(&s, "name", "10", NULL, data); 86 86 set_setint(&s, "name", 3); 87 87 fail_unless(set_getint(&s, "name") == 3); … … 90 90 START_TEST(test_setstr) 91 91 void *data = "data"; 92 set_t *s = NULL , *t;93 t =set_add(&s, "name", "foo", NULL, data);92 set_t *s = NULL; 93 set_add(&s, "name", "foo", NULL, data); 94 94 set_setstr(&s, "name", "bloe"); 95 95 fail_unless(strcmp(set_getstr(&s, "name"), "bloe") == 0);
Note: See TracChangeset
for help on using the changeset viewer.