Commit 0dc5a421 authored by Pekka Pessi's avatar Pekka Pessi

test_nua.c: fixed alarm() handling with --expensive or EXPENSIVE_CHECKS

darcs-hash:20070411134343-65a35-97615034faee7add7f1c69e76455fb820bf2a13d.gz
parent d0964e76
......@@ -248,8 +248,15 @@ int main(int argc, char *argv[])
}
#if HAVE_ALARM
else if (o_alarm) {
alarm(o_expensive ? 240 : 120);
signal(SIGALRM, sig_alarm);
if (o_expensive) {
printf("%s: extending timeout to %u because expensive tests\n",
name, 240);
alarm(240);
}
else {
alarm(120);
}
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment