aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-10-28 18:35:03 -0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-12-28 20:30:59 -0200
commit59c900c54b8db3638bc5e9e90784552aab4e2df4 (patch)
tree3052c17a35bba281f4c7b236170238e565ed16e6 /support
parent2182a151a7bc0ca971bdfd1bddc4b7180172ac8b (diff)
downloadglibc-59c900c54b8db3638bc5e9e90784552aab4e2df4.tar
glibc-59c900c54b8db3638bc5e9e90784552aab4e2df4.tar.gz
glibc-59c900c54b8db3638bc5e9e90784552aab4e2df4.tar.bz2
glibc-59c900c54b8db3638bc5e9e90784552aab4e2df4.zip
Add SYSV message queue test
This patch adds a simple SYSV message queue test to check for correct argument passing on kernel. The idea is neither to be an extensive testing nor to check for any specific Linux test. * sysvipc/Makefile (tests): Add test-sysvmsg. * sysvipc/test-sysvmsg.c: New file. * test-skeleton.c (FAIL_UNSUPPORTED): New define.
Diffstat (limited to 'support')
-rw-r--r--support/check.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/support/check.h b/support/check.h
index fb2cd913aa..92cb5d9934 100644
--- a/support/check.h
+++ b/support/check.h
@@ -35,6 +35,11 @@ __BEGIN_DECLS
#define FAIL_EXIT1(...) \
support_exit_failure_impl (1, __FILE__, __LINE__, __VA_ARGS__)
+/* Print failure message and terminate with as unsupported test (exit
+ status of 77). */
+#define FAIL_UNSUPPORTED(...) \
+ support_exit_failure_impl (77, __FILE__, __LINE__, __VA_ARGS__)
+
/* Record a test failure (but continue executing) if EXPR evaluates to
false. */
#define TEST_VERIFY(expr) \