5 int main(int argc
, char **argv
)
9 // This tests the case where argv and envp are NULL, which is easy to
10 // get wrong because it's an unusual case.
12 #if defined(VGO_solaris)
13 // Solaris requires non-NULL argv parameter
14 char *const argv_exe
[] = {"true", NULL
};
15 if (execve("/bin/true", argv_exe
, NULL
) < 0)
16 #elif defined(VGO_darwin)
17 if (execve("/usr/bin/true", NULL
, NULL
) < 0)
19 if (execve("/bin/true", NULL
, NULL
) < 0)