From a8a812ef6a65c3193bd44ecd162e37ff358814a3 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Wed, 12 Nov 2014 12:11:32 +0000 Subject: [PATCH] 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 --- minix/tests/test76.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/minix/tests/test76.c b/minix/tests/test76.c index c7268329a..7b41d18a3 100644 --- a/minix/tests/test76.c +++ b/minix/tests/test76.c @@ -48,7 +48,7 @@ test76a(void) memset(&it, 0, sizeof(it)); 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); /* First try without any file descriptors. */ @@ -125,7 +125,7 @@ test76b(void) memset(&it, 0, sizeof(it)); 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); /* @@ -146,7 +146,7 @@ test76b(void) memset(&it, 0, sizeof(it)); 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); /* Now interrupt a write attempt on a full pipe. */ @@ -158,7 +158,7 @@ test76b(void) memset(&it, 0, sizeof(it)); 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); /* Now interrupt a read on an empty pipe. */ @@ -205,7 +205,7 @@ test76c(void) memset(&it, 0, sizeof(it)); 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); /* This will block until the timer fires. */