Changeset 1fc2958 for tests/check.c


Ignore:
Timestamp:
2006-06-16T12:07:51Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
125b35d
Parents:
c2fa827
Message:

Add checks for nick functions as well, fix bug where nick lengths weren't
being honored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/check.c

    rc2fa827 r1fc2958  
    33#include <gmodule.h>
    44#include <check.h>
     5#include "bitlbee.h"
     6
     7global_t global;        /* Against global namespace pollution */
     8
     9double gettime()
     10{
     11        struct timeval time[1];
     12
     13        gettimeofday( time, 0 );
     14        return( (double) time->tv_sec + (double) time->tv_usec / 1000000 );
     15}
    516
    617/* From check_util.c */
    718Suite *util_suite(void);
     19
     20/* From check_nick.c */
     21Suite *nick_suite(void);
    822
    923int main (void)
     
    1125        int nf;
    1226        SRunner *sr = srunner_create(util_suite());
     27        srunner_add_suite(sr, nick_suite());
    1328        srunner_run_all (sr, CK_NORMAL);
    1429        nf = srunner_ntests_failed(sr);
Note: See TracChangeset for help on using the changeset viewer.