1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +00:00

Tests: Remove unused macro in TestEFault

This commit is contained in:
Andreas Kling 2022-04-02 19:55:11 +02:00
parent 2617adac52
commit df64b85925

View file

@ -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);