summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux
diff options
context:
space:
mode:
authorZyad A. Ali <zyad.ali.me@gmail.com>2021-06-02 15:54:36 +0200
committerZyad A. Ali <zyad.ali.me@gmail.com>2021-07-13 22:12:02 +0200
commit4a874557f5846ec9cb2e5b2515921e37a4ca4f07 (patch)
treef8e3f5d9b1ec5b8f003fb8185e03df3effb394fd /test/syscalls/linux
parent084aa4fa51b74b426cf1bc0e1347624b2b516bcd (diff)
Implement stubs for msgget(2) and msgctl(IPC_RMID).
Add support for msgget, and msgctl(IPC_RMID), and enable msgqueue syscall tests. Updates #135
Diffstat (limited to 'test/syscalls/linux')
-rw-r--r--test/syscalls/linux/msgqueue.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/syscalls/linux/msgqueue.cc b/test/syscalls/linux/msgqueue.cc
index ba61bba34..2409de7e8 100644
--- a/test/syscalls/linux/msgqueue.cc
+++ b/test/syscalls/linux/msgqueue.cc
@@ -48,9 +48,6 @@ class Queue {
// Test simple creation and retrieval for msgget(2).
TEST(MsgqueueTest, MsgGet) {
- // Don't run test until syscall is implemented.
- GTEST_SKIP();
-
const TempPath keyfile = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateFile());
const key_t key = ftok(keyfile.path().c_str(), 1);
ASSERT_THAT(key, SyscallSucceeds());
@@ -62,9 +59,6 @@ TEST(MsgqueueTest, MsgGet) {
// Test simple failure scenarios for msgget(2).
TEST(MsgqueueTest, MsgGetFail) {
- // Don't run test until syscall is implemented.
- GTEST_SKIP();
-
const TempPath keyfile = ASSERT_NO_ERRNO_AND_VALUE(TempPath::CreateFile());
const key_t key = ftok(keyfile.path().c_str(), 1);
ASSERT_THAT(key, SyscallSucceeds());
@@ -79,9 +73,6 @@ TEST(MsgqueueTest, MsgGetFail) {
// Test using msgget(2) with IPC_PRIVATE option.
TEST(MsgqueueTest, MsgGetIpcPrivate) {
- // Don't run test until syscall is implemented.
- GTEST_SKIP();
-
Queue queue1(msgget(IPC_PRIVATE, 0));
ASSERT_THAT(queue1.get(), SyscallSucceeds());