summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls
diff options
context:
space:
mode:
authorZyad A. Ali <zyad.ali.me@gmail.com>2021-06-29 23:53:25 +0200
committerZyad A. Ali <zyad.ali.me@gmail.com>2021-08-17 20:34:51 +0200
commit2f1c65e7fa49ddf6debb5d8ba4a5b08e17404e2a (patch)
treeef8bc3fc327bda55ae4425aa0587c005cefad5d1 /test/syscalls
parent265deee8cbce8f7d517bf749eb131fbed5d88151 (diff)
Implement stub for msgctl(2).
Add support for msgctl and enable tests. Fixes #135
Diffstat (limited to 'test/syscalls')
-rw-r--r--test/syscalls/linux/msgqueue.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/syscalls/linux/msgqueue.cc b/test/syscalls/linux/msgqueue.cc
index e0fb63adf..6804478fd 100644
--- a/test/syscalls/linux/msgqueue.cc
+++ b/test/syscalls/linux/msgqueue.cc
@@ -662,8 +662,6 @@ TEST(MsgqueueTest, MsgOpGeneral) {
// Test msgctl with IPC_STAT option.
TEST(MsgqueueTest, MsgCtlIpcStat) {
- GTEST_SKIP();
-
auto start = absl::Now();
Queue queue(msgget(IPC_PRIVATE, 0600));
@@ -734,8 +732,6 @@ TEST(MsgqueueTest, MsgCtlIpcStat) {
// Test msgctl with IPC_STAT option on a write-only queue.
TEST(MsgqueueTest, MsgCtlIpcStatWriteOnly) {
- GTEST_SKIP();
-
// Drop CAP_IPC_OWNER which allows us to bypass permissions.
AutoCapability cap(CAP_IPC_OWNER, false);
@@ -749,8 +745,6 @@ TEST(MsgqueueTest, MsgCtlIpcStatWriteOnly) {
// Test msgctl with IPC_SET option.
TEST(MsgqueueTest, MsgCtlIpcSet) {
- GTEST_SKIP();
-
Queue queue(msgget(IPC_PRIVATE, 0600));
ASSERT_THAT(queue.get(), SyscallSucceeds());
@@ -767,8 +761,6 @@ TEST(MsgqueueTest, MsgCtlIpcSet) {
// Test increasing msg_qbytes beyond limit with IPC_SET.
TEST(MsgqueueTest, MsgCtlIpcSetMaxBytes) {
- GTEST_SKIP();
-
// Drop CAP_SYS_RESOURCE which allows us to increase msg_qbytes beyond the
// system parameter MSGMNB.
AutoCapability cap(CAP_SYS_RESOURCE, false);
@@ -792,8 +784,6 @@ TEST(MsgqueueTest, MsgCtlIpcSetMaxBytes) {
// Test msgctl with IPC_INFO option.
TEST(MsgqueueTest, MsgCtlIpcInfo) {
- GTEST_SKIP();
-
struct msginfo info;
ASSERT_THAT(msgctl(0, IPC_INFO, reinterpret_cast<struct msqid_ds*>(&info)),
SyscallSucceeds());
@@ -809,8 +799,6 @@ TEST(MsgqueueTest, MsgCtlIpcInfo) {
// Test msgctl with MSG_INFO option.
TEST(MsgqueueTest, MsgCtlMsgInfo) {
- GTEST_SKIP();
-
struct msginfo info;
ASSERT_THAT(msgctl(0, MSG_INFO, reinterpret_cast<struct msqid_ds*>(&info)),
SyscallSucceeds());