diff options
Diffstat (limited to 'rt/tst-mqueue10.c')
-rw-r--r-- | rt/tst-mqueue10.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/rt/tst-mqueue10.c b/rt/tst-mqueue10.c index 9da9838258..059c064488 100644 --- a/rt/tst-mqueue10.c +++ b/rt/tst-mqueue10.c @@ -43,7 +43,15 @@ do_test (void) struct mq_attr attr = { .mq_maxmsg = 1, .mq_msgsize = sizeof (msg) }; mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); - TEST_VERIFY_EXIT (q != (mqd_t) -1); + + if (q == (mqd_t) -1) + { + if (errno == ENOSYS) + FAIL_UNSUPPORTED ("mq_open not supported"); + + printf ("mq_open failed with: %m\n"); + return 1; + } struct timespec ts = { TYPE_MAXIMUM (time_t), 0 }; |