Commit cc965243 by Edward Thomson

process: test /usr/bin/false on BSDs

Our process tests were previously testing that false is
`/bin/false` everywhere except macOS, where it exists as
`/usr/bin/false`. . Extend this to all BSDs.
parent b49b8dbe
......@@ -38,9 +38,10 @@ void test_process_start__cleanup(void)
void test_process_start__returncode(void)
{
#ifdef GIT_WIN32
#if defined(GIT_WIN32)
const char *args_array[] = { "C:\\Windows\\System32\\cmd.exe", "/c", "exit", "1" };
#elif __APPLE__
#elif defined(__APPLE__) || defined(__NetBSD__) || defined(__FreeBSD__) || \
defined(__MidnightBSD__) || defined(__DragonFly__)
const char *args_array[] = { "/usr/bin/false" };
#else
const char *args_array[] = { "/bin/false" };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment