[PATCH] viridentitytest: Drop #if !WITH_SELINUX block

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The whole test is built only if SELinux secdriver is enabled and
thus the !WITH_SELINUX can't be satisfied really. Also, the block
references @ret variable which exists no more after v5.9.0-rc1~269.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 tests/viridentitytest.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/tests/viridentitytest.c b/tests/viridentitytest.c
index fd01eeaa80..7a7101ba2a 100644
--- a/tests/viridentitytest.c
+++ b/tests/viridentitytest.c
@@ -85,14 +85,6 @@ static int testIdentityGetSystem(const void *data)
     const char *val;
     int rc;
 
-#if !WITH_SELINUX
-    if (context) {
-        VIR_DEBUG("libvirt not compiled with SELinux, skipping this test");
-        ret = EXIT_AM_SKIP;
-        return -1;
-    }
-#endif
-
     if (!(ident = virIdentityGetSystem())) {
         VIR_DEBUG("Unable to get system identity");
         return -1;
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux