]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
tests: scsihost: Don't set LIBVIRT_FAKE_SYSFS_DIR
authorAndrea Bolognani <abologna@redhat.com>
Fri, 4 Dec 2015 12:45:17 +0000 (13:45 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 9 Dec 2015 14:22:58 +0000 (15:22 +0100)
The test program is not preloading any of the mock libraries that read
that environment variable, so setting it is pointless.

tests/scsihosttest.c

index eecb1c3ad1a7deebb860c9cccee2ea1fdf87195e..eb5f522623e8e40b11e27e66de3f4f1f1eef81ec 100644 (file)
@@ -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;