From 4a874557f5846ec9cb2e5b2515921e37a4ca4f07 Mon Sep 17 00:00:00 2001 From: "Zyad A. Ali" Date: Wed, 2 Jun 2021 15:54:36 +0200 Subject: Implement stubs for msgget(2) and msgctl(IPC_RMID). Add support for msgget, and msgctl(IPC_RMID), and enable msgqueue syscall tests. Updates #135 --- test/syscalls/linux/msgqueue.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'test/syscalls/linux') 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()); -- cgit v1.2.3