freebsd: Avoid /bin/true in commandtest

Rely on PATH and use just true, because on FreeBSD it's /usr/bin/true.
This commit is contained in:
Matthias Bolte 2011-07-28 17:51:26 +02:00
parent cffba7ea3e
commit c0e5994aef
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
A=B /bin/true C
A=B true C

View File

@ -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;