Last change
on this file since ee5c355 was
1fc2958,
checked in by Jelmer Vernooij <jelmer@…>, at 2006-06-16T12:07:51Z
|
Add checks for nick functions as well, fix bug where nick lengths weren't
being honored.
|
-
Property mode set to
100644
|
File size:
649 bytes
|
Rev | Line | |
---|
[c2fa827] | 1 | #include <stdlib.h> |
---|
| 2 | #include <glib.h> |
---|
| 3 | #include <gmodule.h> |
---|
| 4 | #include <check.h> |
---|
[1fc2958] | 5 | #include "bitlbee.h" |
---|
| 6 | |
---|
| 7 | global_t global; /* Against global namespace pollution */ |
---|
| 8 | |
---|
| 9 | double gettime() |
---|
| 10 | { |
---|
| 11 | struct timeval time[1]; |
---|
| 12 | |
---|
| 13 | gettimeofday( time, 0 ); |
---|
| 14 | return( (double) time->tv_sec + (double) time->tv_usec / 1000000 ); |
---|
| 15 | } |
---|
[c2fa827] | 16 | |
---|
| 17 | /* From check_util.c */ |
---|
| 18 | Suite *util_suite(void); |
---|
| 19 | |
---|
[1fc2958] | 20 | /* From check_nick.c */ |
---|
| 21 | Suite *nick_suite(void); |
---|
| 22 | |
---|
[c2fa827] | 23 | int main (void) |
---|
| 24 | { |
---|
| 25 | int nf; |
---|
| 26 | SRunner *sr = srunner_create(util_suite()); |
---|
[1fc2958] | 27 | srunner_add_suite(sr, nick_suite()); |
---|
[c2fa827] | 28 | srunner_run_all (sr, CK_NORMAL); |
---|
| 29 | nf = srunner_ntests_failed(sr); |
---|
| 30 | srunner_free(sr); |
---|
| 31 | return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.