aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/mqueue/mq_open_tests.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-11tools: fix mq_open_tests compile warningsShuah Khan1-6/+14
Fix several compile warnings - these are repeats like the ones below: gcc -O2 -lrt mq_open_tests.c -o mq_open_tests mq_open_tests.c: In function ‘main’: mq_open_tests.c:295:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘rlim_t’ [-Wformat=] printf("\tRLIMIT_MSGQUEUE(soft):\t\t%d\n", saved_limits.rlim_cur); ^ mq_open_tests.c: In function ‘shutdown’: mq_open_tests.c:83:9: warning: ignoring return value of ‘seteuid’, declared with attribute warn_unused_result [-Wunused-result] seteuid(0); Signed-off-by: Shuah Khan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-31selftests: add mq_open_testsDoug Ledford1-0/+492
Add a directory to house POSIX message queue subsystem specific tests. Add first test which checks the operation of mq_open() under various corner conditions. Signed-off-by: Doug Ledford <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Cc: Doug Ledford <[email protected]> Cc: Joe Korty <[email protected]> Cc: Amerigo Wang <[email protected]> Cc: Serge E. Hallyn <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: Manfred Spraul <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>