1 #include <darwintest.h>
5 int can_signal_parent
= 0;
8 signal_handler(int sig
)
11 can_signal_parent
= 1;
16 T_DECL(no32exec_bootarg_with_spawn_binprefs_helper
, "helper for no32exec_bootarg_with_spawn_binprefs test")
18 unsigned long ptrSize
= sizeof(long);
21 signal(SIGUSR1
, signal_handler
);
22 signal(SIGALRM
, signal_handler
);
24 // parent will signal us if they're no32exec_bootarg_with_spawn_binprefs, otherwise timeout
28 /* signal to parent process if we are running in 64-bit mode */
29 if (can_signal_parent
&& ptrSize
== 8) {
33 T_SKIP("nothing to see here");