From: Ben Gras Date: Wed, 6 Feb 2013 16:38:13 +0000 (+0100) Subject: test41: relax maximum timer tick rate X-Git-Tag: v3.2.1~24 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch04.html?a=commitdiff_plain;h=702d90b6fe8aa0c1a27ecd251d9becf74d8f19f1;p=minix.git test41: relax maximum timer tick rate . on ARM (hz=1000) does not give code a chance to stop the timer Change-Id: Id626bfed088400c3c3962ddfc5e8fbe23dd2a797 --- diff --git a/test/test41.c b/test/test41.c index 314a404e7..526362dd6 100644 --- a/test/test41.c +++ b/test/test41.c @@ -55,7 +55,7 @@ void test_exec(void); int do_check(void); void got_alarm(int sig); void busy_wait(int secs); -void my_e(int n); +#define my_e(n) do { printf("Timer %s, ", names[timer]); e(n); } while(0) static char *executable; static int signals; @@ -222,7 +222,7 @@ void test_timer() if (signal(sigs[timer], got_alarm) == SIG_ERR) my_e(1); - FILLITIMER(it, 0, 1, 0, 1); + FILLITIMER(it, 0, 100000, 0, 100000); if (setitimer(timer, &it, NULL)) my_e(2); @@ -385,10 +385,3 @@ int sig; signals++; } -void my_e(n) -int n; -{ - - printf("Timer %s, ", names[timer]); - e(n); -}