test41: relax maximum timer tick rate

. on ARM (hz=1000) does not give code a chance to stop the timer

Change-Id: Id626bfed088400c3c3962ddfc5e8fbe23dd2a797
This commit is contained in:
Ben Gras 2013-02-06 17:38:13 +01:00
parent 3357fcb24a
commit 702d90b6fe

View file

@ -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);
}