From d165c54d86241d8170fd52757644e0abd0935326 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 24 Sep 2012 17:04:46 -0600 Subject: [PATCH] tests: test previous commit Add a test to avoid virCommand regressions. * tests/commandtest.c (test8): Explicitly test env-var overrides. --- tests/commandtest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/commandtest.c b/tests/commandtest.c index 930df5cc25..cba6cb6ecf 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) {