diff --git a/test/libc/calls/pledge2_test.c b/test/libc/calls/pledge2_test.c index 5f705f552..c70772678 100644 --- a/test/libc/calls/pledge2_test.c +++ b/test/libc/calls/pledge2_test.c @@ -79,7 +79,7 @@ TEST(pledge, testLogMessage_inSoftyMode) { read(fds[0], msg, sizeof(msg)); close(fds[0]); if (IsLinux()) { - ASSERT_STARTSWITH("error: pledge inet for socket", msg); + ASSERT_STARTSWITH("error: protected syscall socket", msg); } } @@ -97,7 +97,7 @@ TEST(pledge, testLogMessage_onKillProcess) { read(fds[0], msg, sizeof(msg)); close(fds[0]); if (IsLinux()) { - ASSERT_STARTSWITH("error: pledge inet for socket", msg); + ASSERT_STARTSWITH("error: protected syscall socket", msg); } } diff --git a/test/libc/calls/pledge_test.c b/test/libc/calls/pledge_test.c index 197ab352e..34d4d29b4 100644 --- a/test/libc/calls/pledge_test.c +++ b/test/libc/calls/pledge_test.c @@ -615,7 +615,7 @@ TEST(pledge, everything) { // contains 591 bpf instructions [2022-07-24] ASSERT_SYS(0, 0, pledge("stdio rpath wpath cpath dpath " - "flock fattr inet unix dns tty " + "flock fattr inet anet unix dns tty " "recvfd sendfd proc exec id " "unveil settime prot_exec " "vminfo tmppath",