From 8e3122faf57bf53d03e70adbd65250cc1b1b4b59 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Fri, 4 Dec 2015 13:45:17 +0100 Subject: [PATCH] tests: scsihost: Don't set LIBVIRT_FAKE_SYSFS_DIR 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 eecb1c3ad1..eb5f522623 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; -- GitLab