diff --git a/libc/test/integration/startup/linux/tls_test.cpp b/libc/test/integration/startup/linux/tls_test.cpp index cf2ff94931ba6e..2a6385e195a496 100644 --- a/libc/test/integration/startup/linux/tls_test.cpp +++ b/libc/test/integration/startup/linux/tls_test.cpp @@ -32,7 +32,7 @@ TEST_MAIN(int argc, char **argv, char **envp) { void *addr = LIBC_NAMESPACE::mmap(nullptr, 0, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); ASSERT_TRUE(addr == MAP_FAILED); - ASSERT_ERRNO_SUCCESS(); + ASSERT_ERRNO_EQ(EINVAL); return 0; }