The test program is not preloading any of the mock libraries that read
that environment variable, so setting it is pointless.
---
tests/scsihosttest.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tests/scsihosttest.c b/tests/scsihosttest.c
index eecb1c3..eb5f522 100644
--- a/tests/scsihosttest.c
+++ b/tests/scsihosttest.c
@@ -262,8 +262,6 @@ mymain(void)
goto cleanup;
}
- setenv("LIBVIRT_FAKE_SYSFS_DIR", fakesysfsdir, 1);
-
if (init_scsihost_sysfs(fakesysfsdir) < 0) {
fprintf(stderr, "Failed to create fakesysfs='%s'\n",
fakesysfsdir);
goto cleanup;
--
2.5.0