Module: xenomai-2.6
Branch: master
Commit: e649c536c55a3400c4564cea6506ec05f1b17e7d
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=e649c536c55a3400c4564cea6506ec05f1b17e7d

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Jan 28 18:53:49 2012 +0100

testsuite: get the sigdebug test running on ARM

---

 src/testsuite/regression/native/sigdebug.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/testsuite/regression/native/sigdebug.c 
b/src/testsuite/regression/native/sigdebug.c
index 786501f..1e998b4 100644
--- a/src/testsuite/regression/native/sigdebug.c
+++ b/src/testsuite/regression/native/sigdebug.c
@@ -21,8 +21,6 @@
 #include <native/sem.h>
 #include <native/timer.h>
 
-#define WRITE_TEST_SIZE                (4*1024)
-
 unsigned int expected_reason;
 bool sigdebug_received;
 pthread_t rt_task_thread;
@@ -88,7 +86,7 @@ void rt_task_body(void *cookie)
 
        rt_printf("syscall\n");
        setup_checkdebug(SIGDEBUG_MIGRATE_SYSCALL);
-       syscall(-1);
+       sched_yield();
        check_sigdebug_received("SIGDEBUG_MIGRATE_SYSCALL");
 
        rt_printf("signal\n");
@@ -104,7 +102,6 @@ void rt_task_body(void *cookie)
        check("rt_mutex_acquire", err, -EINTR);
        check_sigdebug_received("SIGDEBUG_MIGRATE_PRIOINV");
 
-
        rt_printf("page fault\n");
        setup_checkdebug(SIGDEBUG_MIGRATE_FAULT);
        rt_task_sleep(0);
@@ -239,7 +236,7 @@ int main(int argc, char **argv)
        check_no_error("rt_sem_signal", err);
        pthread_kill(rt_task_thread, SIGUSR1);
 
-       rt_task_sleep(20000000);
+       rt_task_sleep(20000000LL);
 
        err = rt_mutex_release(&prio_invert);
        check_no_error("rt_mutex_release", err);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to