diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2014-04-25 10:03:59 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2014-04-25 10:03:59 +0200 |
commit | 7b05842983ffb53f99d88ae778bffd035b87c613 (patch) | |
tree | f3ac8daae011efa0e60bc4464b6228e445fbe321 /tests/check_set.c | |
parent | b4008a52254debf3a2c348c9e4a710d3bb8dc8ec (diff) | |
parent | 6a6d7d8f10fb72b195cef814e473917d984023b4 (diff) |
Merging test suite fixes from Jelmer.
Diffstat (limited to 'tests/check_set.c')
-rw-r--r-- | tests/check_set.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/check_set.c b/tests/check_set.c index 29e3c8c8..5df63270 100644 --- a/tests/check_set.c +++ b/tests/check_set.c @@ -25,7 +25,7 @@ START_TEST(test_set_add_existing) END_TEST START_TEST(test_set_find_unknown) - set_t *s = NULL, *t; + set_t *s = NULL; fail_unless (set_find(&s, "foo") == NULL); END_TEST @@ -68,8 +68,8 @@ END_TEST START_TEST(test_set_get_str_value) void *data = "data"; - set_t *s = NULL, *t; - t = set_add(&s, "name", "default", NULL, data); + set_t *s = NULL; + set_add(&s, "name", "default", NULL, data); set_setstr(&s, "name", "foo"); fail_unless(strcmp(set_getstr(&s, "name"), "foo") == 0); END_TEST @@ -81,16 +81,16 @@ END_TEST START_TEST(test_setint) void *data = "data"; - set_t *s = NULL, *t; - t = set_add(&s, "name", "10", NULL, data); + set_t *s = NULL; + set_add(&s, "name", "10", NULL, data); set_setint(&s, "name", 3); fail_unless(set_getint(&s, "name") == 3); END_TEST START_TEST(test_setstr) void *data = "data"; - set_t *s = NULL, *t; - t = set_add(&s, "name", "foo", NULL, data); + set_t *s = NULL; + set_add(&s, "name", "foo", NULL, data); set_setstr(&s, "name", "bloe"); fail_unless(strcmp(set_getstr(&s, "name"), "bloe") == 0); END_TEST |