Changeset 7b05842 for tests/check_set.c


Ignore:
Timestamp:
2014-04-25T08:03:59Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b95b0c8
Parents:
b4008a5 (diff), 6a6d7d8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merging test suite fixes from Jelmer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/check_set.c

    rb4008a5 r7b05842  
    2626
    2727START_TEST(test_set_find_unknown)
    28         set_t *s = NULL, *t;
     28        set_t *s = NULL;
    2929        fail_unless (set_find(&s, "foo") == NULL);
    3030END_TEST
     
    6969START_TEST(test_set_get_str_value)
    7070        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);
    7373        set_setstr(&s, "name", "foo");
    7474        fail_unless(strcmp(set_getstr(&s, "name"), "foo") == 0);
     
    8282START_TEST(test_setint)
    8383        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);
    8686        set_setint(&s, "name", 3);
    8787        fail_unless(set_getint(&s, "name") == 3);
     
    9090START_TEST(test_setstr)
    9191        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);
    9494        set_setstr(&s, "name", "bloe");
    9595        fail_unless(strcmp(set_getstr(&s, "name"), "bloe") == 0);
Note: See TracChangeset for help on using the changeset viewer.