mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:27:34 +00:00
Tests: Remove unused macro in TestEFault
This commit is contained in:
parent
2617adac52
commit
df64b85925
1 changed files with 0 additions and 10 deletions
|
@ -34,16 +34,6 @@
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} 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)
|
TEST_CASE(test_efault)
|
||||||
{
|
{
|
||||||
int fd = open("/dev/zero", O_RDONLY);
|
int fd = open("/dev/zero", O_RDONLY);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue