tests: add mq.test

* tests/mq.c: New file.
* tests/mq.expected: Likewise.
* tests/mq.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add mq.
(TESTS): Add mq.test.
(EXTRA_DIST): Add mq.expected.
(mq_LDADD): Add -lrt.
* tests/.gitignore: Add mq.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index bb8e9bc..6786498 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -31,6 +31,7 @@
 	mmap \
 	mmap64 \
 	mmsg \
+	mq \
 	net-accept-connect \
 	netlink_inet_diag \
 	netlink_unix_diag \
@@ -73,6 +74,7 @@
 
 filter_unavailable_LDADD = -lpthread
 mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
+mq_LDADD = -lrt
 pc_LDADD = $(dl_LIBS)
 stat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
 statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64
@@ -101,6 +103,7 @@
 	ipc_msg.test \
 	ipc_shm.test \
 	ipc_sem.test \
+	mq.test \
 	readlink.test \
 	readlinkat.test \
 	rt_sigqueueinfo.test \
@@ -173,6 +176,7 @@
 	     ipc.sh \
 	     memfd_create.expected \
 	     mmsg.expected \
+	     mq.expected \
 	     net.expected \
 	     net-fd.expected \
 	     net-yy-accept.awk \