Skip to content

Commit b5b86c2

Browse files
Update libc/test/src/sys/ioctl/linux/ioctl_test.cpp
Co-authored-by: Michael Jones <[email protected]>
1 parent 8083813 commit b5b86c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/test/src/sys/ioctl/linux/ioctl_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ TEST(LlvmLibcSysIoctlTest, InvalidCommandENOTTY) {
3030
// 0xDEADBEEF is just a random nonexistent command;
3131
// calling this should always fail with ENOTTY
3232
int ret = LIBC_NAMESPACE::ioctl(3, 0xDEADBEEF, NULL);
33-
ASSERT_TRUE(ret == -1 && errno == ENOTTY);
33+
ASSERT_EQ(ret, -1);
34+
ASSERT_ERRNO_EQ(ENOTTY);
3435
}

0 commit comments

Comments
 (0)