aboutsummaryrefslogtreecommitdiff
path: root/rt/tst-mqueue6.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/tst-mqueue6.c')
-rw-r--r--rt/tst-mqueue6.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/rt/tst-mqueue6.c b/rt/tst-mqueue6.c
index 4831bf2..bc875f1 100644
--- a/rt/tst-mqueue6.c
+++ b/rt/tst-mqueue6.c
@@ -30,6 +30,7 @@
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
+#include <support/check.h>
#include "tst-mqueue.h"
#if _POSIX_THREADS
@@ -116,11 +117,14 @@ do_test (void)
if (q == (mqd_t) -1)
{
+ if (errno == ENOSYS)
+ FAIL_UNSUPPORTED ("mq_open not supported");
+
printf ("mq_open failed with: %m\n");
- return result;
+ return 1;
}
- else
- add_temp_mq (name);
+
+ add_temp_mq (name);
pthread_attr_t nattr;
if (pthread_attr_init (&nattr)