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.
This commit is contained in:
Jōshin 2024-05-06 09:49:54 -07:00
parent b77a3d5c67
commit f6cc903c0d
No known key found for this signature in database

View file

@ -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");