From: Sebastian B. <sb...@us...> - 2013-12-24 08:57:02
|
Update of /cvsroot/simplemail/simplemail/tests In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28538/tests Modified Files: imap2_unittest.c Log Message: Use thread_wait() rather than sleep(). Index: imap2_unittest.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/tests/imap2_unittest.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- imap2_unittest.c 24 Dec 2013 08:53:07 -0000 1.6 +++ imap2_unittest.c 24 Dec 2013 08:57:00 -0000 1.7 @@ -30,6 +30,12 @@ /*************************************************************/ +void *test_imap_timer_callback(void *data) +{ + thread_abort(thread_get_main()); + return NULL; +} + /* @Test */ void test_imap(void) { @@ -80,7 +86,7 @@ imap_thread_connect(f); - sleep(2); + thread_wait(test_imap_timer_callback, NULL, 2000); del_folders(); free_config(); |