Ignore:
Timestamp:
2019-11-19T12:51:39Z (4 years ago)
Author:
Dima <dgoldin+github@…>
Branches:
master
Children:
b504415
Parents:
bcd8f52
Message:

Fixing tests for libcheck 0.13.0

Since libcheck 0.13 it's mandatory to wrap the unit-test code
in a block. This updates the tests to comply with this.

This fix is backwards compatible with libcheck 0.12.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/check_jabber_util.c

    rbcd8f52 r6ff651b  
    99static struct im_connection *ic;
    1010
    11 static void check_buddy_add(int l)
     11START_TEST(check_buddy_add)
    1212{
    1313        struct jabber_buddy *budw1, *budw2, *budw3, *budn, *bud;
     
    9494        fail_unless(jabber_buddy_remove(ic, "bugtest@google.com/C"));
    9595}
     96END_TEST
    9697
    97 static void check_compareJID(int l)
     98START_TEST(check_compareJID)
    9899{
    99100        fail_unless(jabber_compare_jid("bugtest@google.com/B", "bugtest@google.com/A"));
     
    106107        fail_if(jabber_compare_jid("", NULL));
    107108}
     109END_TEST
    108110
    109 static void check_hipchat_slug(int l)
     111START_TEST(check_hipchat_slug)
    110112{
    111113        int i;
     
    125127        }
    126128}
     129END_TEST
    127130
    128131Suite *jabber_util_suite(void)
Note: See TracChangeset for help on using the changeset viewer.