Check return from tmr_create in timer test.

This commit is contained in:
Jef Poskanzer 2013-12-12 12:04:11 -08:00
parent 0193ee1881
commit fdcbd49578

View File

@ -32,6 +32,11 @@ main(int argc, char **argv)
flag = 0;
tp = tmr_create((struct timeval*) 0, timer_proc, JunkClientData, 3000000, 0);
if (!tp)
{
printf("failed to create timer\n");
exit(-1);
}
sleep(2);