Changeset ed5df81 for tests/check.c


Ignore:
Timestamp:
2007-01-21T21:17:11Z (14 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
8c073a6
Parents:
7bee5af
Message:

Add unit testing for user code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/check.c

    r7bee5af red5df81  
    1919        *ch2 = g_io_channel_unix_new(sock[1]);
    2020        return TRUE;
     21}
     22
     23irc_t *torture_irc(void)
     24{
     25        irc_t *irc;
     26        GIOChannel *ch1, *ch2;
     27        if (!g_io_channel_pair(&ch1, &ch2))
     28                return NULL;
     29        irc = irc_new(g_io_channel_unix_get_fd(ch1));
     30        return irc;
    2131}
    2232
     
    4353/* From check_help.c */
    4454Suite *help_suite(void);
     55
     56/* From check_user.c */
     57Suite *user_suite(void);
    4558
    4659int main (int argc, char **argv)
     
    8598        srunner_add_suite(sr, irc_suite());
    8699        srunner_add_suite(sr, help_suite());
     100        srunner_add_suite(sr, user_suite());
    87101        if (no_fork)
    88102                srunner_set_fork_status(sr, CK_NOFORK);
Note: See TracChangeset for help on using the changeset viewer.