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:
parent
3357fcb24a
commit
702d90b6fe
@ -55,7 +55,7 @@ void test_exec(void);
|
|||||||
int do_check(void);
|
int do_check(void);
|
||||||
void got_alarm(int sig);
|
void got_alarm(int sig);
|
||||||
void busy_wait(int secs);
|
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 char *executable;
|
||||||
static int signals;
|
static int signals;
|
||||||
@ -222,7 +222,7 @@ void test_timer()
|
|||||||
|
|
||||||
if (signal(sigs[timer], got_alarm) == SIG_ERR) my_e(1);
|
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);
|
if (setitimer(timer, &it, NULL)) my_e(2);
|
||||||
|
|
||||||
@ -385,10 +385,3 @@ int sig;
|
|||||||
signals++;
|
signals++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void my_e(n)
|
|
||||||
int n;
|
|
||||||
{
|
|
||||||
|
|
||||||
printf("Timer %s, ", names[timer]);
|
|
||||||
e(n);
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user