summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-04-02 19:55:11 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-03 21:51:58 +0200
commitdf64b859254482ec7630615d33aff08a710de1ab (patch)
treef83aba2973706428c3e84e975475593796391f1b /Tests
parent2617adac526fd2ac897f81d26d9203b179ec7abe (diff)
downloadserenity-df64b859254482ec7630615d33aff08a710de1ab.zip
Tests: Remove unused macro in TestEFault
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Kernel/TestEFault.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/Tests/Kernel/TestEFault.cpp b/Tests/Kernel/TestEFault.cpp
index 07bc4d9777..e2d79e1183 100644
--- a/Tests/Kernel/TestEFault.cpp
+++ b/Tests/Kernel/TestEFault.cpp
@@ -34,16 +34,6 @@
} \
} while (0)
-#define EXPECT_EFAULT_NO_FD(syscall, address, size) \
- do { \
- rc = syscall((address), (size_t)(size)); \
- EXPECT(rc < 0); \
- EXPECT_EQ(errno, EFAULT); \
- if (rc >= 0 || errno != EFAULT) { \
- warnln("Expected EFAULT: " #syscall "({:p}, {}), got rc={}, errno={}", (void*)(address), (size_t)(size), rc, errno); \
- } \
- } while (0)
-
TEST_CASE(test_efault)
{
int fd = open("/dev/zero", O_RDONLY);