File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,15 @@ void SetUpOnce(void) {
36
36
37
37
__attribute__((__constructor__ )) static void Child (int argc , char * argv []) {
38
38
static bool skiparg0tests ;
39
- if (!__program_executable_name && !IsFreebsd () && !IsNetbsd ()) {
39
+ if (!IsXnuSilicon ()) {
40
+ /* TODO(mrdomino): these tests only pass on XnuSilicon right now because
41
+ __sys_execve fails there, so the ape loader is used.
42
+ the correct check here is "we have been invoked either
43
+ as an assimilated binary or via the ape loader, and not
44
+ via a raw __sys_execve." */
40
45
skiparg0tests = true;
41
46
if (argc < 2 ) {
42
- fprintf (stderr , "warning: old/no loader; skipping argv[0] tests\n" );
47
+ fprintf (stderr , "warning: skipping argv[0] tests\n" );
43
48
}
44
49
}
45
50
if (argc >= 2 && !strcmp (argv [1 ], "Child" )) {
You can’t perform that action at this time.
0 commit comments