commit | 14e3ff9f09fdd52db43628ccd6f39a6d3fb41740 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Oct 06 16:58:36 2017 -0700 |
committer | Elliott Hughes <enh@google.com> | Wed Oct 11 14:57:49 2017 -0700 |
tree | 8ed0ba1d0744ac95265e2ea634b6e1ff8d72d88c | |
parent | e387c2f08841ac0f6578e903ab21b54d01f3266e [diff] [blame] |
Implement <spawn.h>. As described here: http://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawn.html And here: http://man7.org/linux/man-pages/man3/posix_spawn.3.html Bug: N/A (but mentioned in my inbox since 2013) Test: ran tests Change-Id: I0b27b2919b660779e3bd8a25fb429527c16dc621
diff --git a/tests/utils.h b/tests/utils.h index daf382e..ba006f1 100644 --- a/tests/utils.h +++ b/tests/utils.h
@@ -38,6 +38,12 @@ #define PATH_TO_SYSTEM_LIB "/system/lib/" #endif +#if defined(__GLIBC__) +#define BIN_DIR "/bin/" +#else +#define BIN_DIR "/system/bin/" +#endif + #if defined(__BIONIC__) #define KNOWN_FAILURE_ON_BIONIC(x) xfail_ ## x #else @@ -159,6 +165,9 @@ char** GetArgs() { return const_cast<char**>(args_.data()); } + const char* GetArg0() { + return args_[0]; + } char** GetEnv() { return const_cast<char**>(env_.data()); }