From 59c900c54b8db3638bc5e9e90784552aab4e2df4 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 28 Oct 2016 18:35:03 -0200 Subject: 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. --- support/check.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'support') 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) \ -- cgit v1.1