提交 c0e5994a 编写于 作者: M Matthias Bolte

freebsd: Avoid /bin/true in commandtest

Rely on PATH and use just true, because on FreeBSD it's /usr/bin/true.
上级 cffba7ea
......@@ -566,9 +566,9 @@ cleanup:
*/
static int test16(const void *unused ATTRIBUTE_UNUSED)
{
virCommandPtr cmd = virCommandNew("/bin/true");
virCommandPtr cmd = virCommandNew("true");
char *outactual = NULL;
const char *outexpect = "A=B /bin/true C";
const char *outexpect = "A=B true C";
int ret = -1;
int fd = -1;
......@@ -610,7 +610,7 @@ cleanup:
*/
static int test17(const void *unused ATTRIBUTE_UNUSED)
{
virCommandPtr cmd = virCommandNew("/bin/true");
virCommandPtr cmd = virCommandNew("true");
int ret = -1;
char *outbuf;
char *errbuf;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册