diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2016-10-28 18:35:03 -0200 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2016-12-28 20:30:59 -0200 |
commit | 59c900c54b8db3638bc5e9e90784552aab4e2df4 (patch) | |
tree | 3052c17a35bba281f4c7b236170238e565ed16e6 /support/check.h | |
parent | 2182a151a7bc0ca971bdfd1bddc4b7180172ac8b (diff) | |
download | glibc-59c900c54b8db3638bc5e9e90784552aab4e2df4.zip glibc-59c900c54b8db3638bc5e9e90784552aab4e2df4.tar.gz glibc-59c900c54b8db3638bc5e9e90784552aab4e2df4.tar.bz2 |
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/check.h')
-rw-r--r-- | support/check.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/support/check.h b/support/check.h index fb2cd91..92cb5d9 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) \ |