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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Feb  3 16:40:52 2012 +0100

mq_select: Fix for --enable-dlopen-skins

If --enable-dlopen-skins is set, we won't be automatically shadowed.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 src/testsuite/regression/native+posix/mq_select.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/testsuite/regression/native+posix/mq_select.c 
b/src/testsuite/regression/native+posix/mq_select.c
index c4403bb..aabf77d 100644
--- a/src/testsuite/regression/native+posix/mq_select.c
+++ b/src/testsuite/regression/native+posix/mq_select.c
@@ -63,6 +63,7 @@ void task(void *cookie)
 
 int main(void)
 {
+       RT_TASK main_tcb;
        RT_TASK tcb;
        mqd_t mq;
        int i;
@@ -71,6 +72,8 @@ int main(void)
 
        fprintf(stderr, "Checking select service with posix message queues\n");
 
+       check_native(rt_task_shadow(&main_tcb, NULL, 0, 0));
+
        mq = mq_open("/select_test_mq", O_RDWR | O_CREAT | O_NONBLOCK, 0, NULL);
        check_unix(mq == -1 ? -1 : 0);
 


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

Reply via email to