diff options
author | Himanshu40 <himanshuwindows8.1@gmail.com> | 2018-11-28 13:34:34 +0530 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-11-28 10:59:24 -0600 |
commit | 93ccf479e2621109b4711f0cd4568d2463ae6b68 (patch) | |
tree | a6b6eb7ef474853ccd100d121113f82212c83e58 /testsuites/psxtests/psxhdrs/mqueue/mq_unlink.c | |
parent | lm3s3749-testsuite.tcfg: Add dl07 (diff) | |
download | rtems-93ccf479e2621109b4711f0cd4568d2463ae6b68.tar.bz2 |
psxtests: add POSIX API signature compliance tests for mqueue.h file (GCI 2018)
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxhdrs/mqueue/mq_unlink.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/mqueue/mq_unlink.c b/testsuites/psxtests/psxhdrs/mqueue/mq_unlink.c new file mode 100644 index 0000000000..7b651d7175 --- /dev/null +++ b/testsuites/psxtests/psxhdrs/mqueue/mq_unlink.c @@ -0,0 +1,39 @@ +/** + * @file + * @brief mq_unlink() API Conformance Test + */ + + /* + * COPYRIGHT (c) 2018. + * Himanshu Sekhar Nayak + * + * Permission to use, copy, modify, and/or distribute this software + * for any purpose with or without fee is hereby granted. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL + * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR + * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES + * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + + #ifdef HAVE_CONFIG_H + #include "config.h" + #endif + + #include <mqueue.h> + + int test( void ); + + int test( void ) + { + const char *q_name; + int result; + + q_name = "queue"; + result = mq_unlink( q_name ); + + return result; + } |