From: Eric Blake Date: Mon, 24 Sep 2012 23:04:46 +0000 (-0600) Subject: tests: test previous commit X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d165c54d86241d8170fd52757644e0abd0935326;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git tests: test previous commit Add a test to avoid virCommand regressions. * tests/commandtest.c (test8): Explicitly test env-var overrides. --- diff --git a/tests/commandtest.c b/tests/commandtest.c index 930df5cc2..cba6cb6ec 100644 --- a/tests/commandtest.c +++ b/tests/commandtest.c @@ -331,7 +331,9 @@ static int test8(const void *unused ATTRIBUTE_UNUSED) { virCommandPtr cmd = virCommandNew(abs_builddir "/commandhelper"); + virCommandAddEnvString(cmd, "USER=bogus"); virCommandAddEnvString(cmd, "LANG=C"); + virCommandAddEnvPair(cmd, "USER", "also bogus"); virCommandAddEnvPair(cmd, "USER", "test"); if (virCommandRun(cmd, NULL) < 0) {