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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Jun 21 12:54:37 2015 +0200

smokey/rtdm: detect absence of test module

---

 testsuite/smokey/rtdm/rtdm.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/testsuite/smokey/rtdm/rtdm.c b/testsuite/smokey/rtdm/rtdm.c
index e22b78c..2c035c0 100644
--- a/testsuite/smokey/rtdm/rtdm.c
+++ b/testsuite/smokey/rtdm/rtdm.c
@@ -78,10 +78,13 @@ static int run_rtdm(struct smokey_test *t, int argc, char 
*const argv[])
        unsigned long long start;
        int dev, dev2, status;
 
-       status = system("modprobe xeno_rtdmtest");
+       status = system("modprobe -q xeno_rtdmtest");
        if (status < 0 || WEXITSTATUS(status))
                return -ENOSYS;
 
+       if (access(devname, 0) < 0 && errno == ENOENT)
+               return -ENOSYS;
+
        smokey_trace("Setup");
        dev = check_no_error("open", open(devname, O_RDWR));
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to