test76: increase alarm times
The test would sometimes fail because an alarm triggered before the system call to be interrupted by the alarm could be started. Change-Id: Ia507720a1f2d259afde1f97b7edd03f22cbd4810
This commit is contained in:
parent
8b18d03deb
commit
a8a812ef6a
1 changed files with 5 additions and 5 deletions
|
@ -48,7 +48,7 @@ test76a(void)
|
||||||
|
|
||||||
memset(&it, 0, sizeof(it));
|
memset(&it, 0, sizeof(it));
|
||||||
it.it_value.tv_sec = 0;
|
it.it_value.tv_sec = 0;
|
||||||
it.it_value.tv_usec = 10000;
|
it.it_value.tv_usec = 100000;
|
||||||
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(2);
|
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(2);
|
||||||
|
|
||||||
/* First try without any file descriptors. */
|
/* First try without any file descriptors. */
|
||||||
|
@ -125,7 +125,7 @@ test76b(void)
|
||||||
|
|
||||||
memset(&it, 0, sizeof(it));
|
memset(&it, 0, sizeof(it));
|
||||||
it.it_value.tv_sec = 0;
|
it.it_value.tv_sec = 0;
|
||||||
it.it_value.tv_usec = 10000;
|
it.it_value.tv_usec = 100000;
|
||||||
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(4);
|
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(4);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -146,7 +146,7 @@ test76b(void)
|
||||||
|
|
||||||
memset(&it, 0, sizeof(it));
|
memset(&it, 0, sizeof(it));
|
||||||
it.it_value.tv_sec = 0;
|
it.it_value.tv_sec = 0;
|
||||||
it.it_value.tv_usec = 10000;
|
it.it_value.tv_usec = 100000;
|
||||||
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(8);
|
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(8);
|
||||||
|
|
||||||
/* Now interrupt a write attempt on a full pipe. */
|
/* Now interrupt a write attempt on a full pipe. */
|
||||||
|
@ -158,7 +158,7 @@ test76b(void)
|
||||||
|
|
||||||
memset(&it, 0, sizeof(it));
|
memset(&it, 0, sizeof(it));
|
||||||
it.it_value.tv_sec = 0;
|
it.it_value.tv_sec = 0;
|
||||||
it.it_value.tv_usec = 10000;
|
it.it_value.tv_usec = 100000;
|
||||||
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(12);
|
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(12);
|
||||||
|
|
||||||
/* Now interrupt a read on an empty pipe. */
|
/* Now interrupt a read on an empty pipe. */
|
||||||
|
@ -205,7 +205,7 @@ test76c(void)
|
||||||
|
|
||||||
memset(&it, 0, sizeof(it));
|
memset(&it, 0, sizeof(it));
|
||||||
it.it_value.tv_sec = 0;
|
it.it_value.tv_sec = 0;
|
||||||
it.it_value.tv_usec = 10000;
|
it.it_value.tv_usec = 100000;
|
||||||
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(5);
|
if (setitimer(ITIMER_REAL, &it, NULL) < 0) e(5);
|
||||||
|
|
||||||
/* This will block until the timer fires. */
|
/* This will block until the timer fires. */
|
||||||
|
|
Loading…
Reference in a new issue