process: Don't use absolute path names for true/false/cat in unit tests
But use the (builtin) shell commands instead, as on OS X true/false are under /usr/bin.
This commit is contained in:
@@ -28,7 +28,9 @@ START_TEST(test_retval_true)
|
|||||||
"/C",
|
"/C",
|
||||||
"exit 0",
|
"exit 0",
|
||||||
#else
|
#else
|
||||||
"/bin/true",
|
"/bin/sh",
|
||||||
|
"-c",
|
||||||
|
"true",
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
@@ -50,7 +52,9 @@ START_TEST(test_retval_false)
|
|||||||
"/C",
|
"/C",
|
||||||
"exit 1",
|
"exit 1",
|
||||||
#else
|
#else
|
||||||
"/bin/false",
|
"/bin/sh",
|
||||||
|
"-c",
|
||||||
|
"false",
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
@@ -84,7 +88,9 @@ START_TEST(test_echo)
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
"C:\\Windows\\system32\\more.com",
|
"C:\\Windows\\system32\\more.com",
|
||||||
#else
|
#else
|
||||||
"/bin/cat",
|
"/bin/sh",
|
||||||
|
"-c",
|
||||||
|
"cat",
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
@@ -117,7 +123,7 @@ START_TEST(test_echo_err)
|
|||||||
#else
|
#else
|
||||||
"/bin/sh",
|
"/bin/sh",
|
||||||
"-c",
|
"-c",
|
||||||
"1>&2 /bin/cat",
|
"1>&2 cat",
|
||||||
#endif
|
#endif
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user