mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
tests: test previous commit
Add a test to avoid virCommand regressions. * tests/commandtest.c (test8): Explicitly test env-var overrides.
This commit is contained in:
parent
2b32735af4
commit
d165c54d86
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user