Rely on PATH and use just true, because on FreeBSD it's /usr/bin/true.
-A=B /bin/true C
+A=B true C
*/
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;
*/
static int test17(const void *unused ATTRIBUTE_UNUSED)
{
- virCommandPtr cmd = virCommandNew("/bin/true");
+ virCommandPtr cmd = virCommandNew("true");
int ret = -1;
char *outbuf;
char *errbuf;