From f6cc903c0d199c45f8c38ab4cffba60fdb125d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C5=8Dshin?= Date: Mon, 6 May 2024 09:49:54 -0700 Subject: [PATCH] Add TODO in test We should be measuring the AT_FLAGS of the child process, since it may be true even if it is false for the parent process. --- test/libc/calls/getprogramexecutablename_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/libc/calls/getprogramexecutablename_test.c b/test/libc/calls/getprogramexecutablename_test.c index cd5fb2a2b..bde40b7b1 100644 --- a/test/libc/calls/getprogramexecutablename_test.c +++ b/test/libc/calls/getprogramexecutablename_test.c @@ -58,6 +58,7 @@ void SetUpOnce(void) { skiptests = IsOpenbsd() || (IsXnu() && !IsXnuSilicon()); } } else { + // TODO(mrdomino): test skiparg0 in child skiparg0 = !(getauxval(AT_FLAGS) & AT_FLAGS_PRESERVE_ARGV0); } fprintf(stderr, loaded ? "loaded\n" : "not loaded\n");