]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: SELinux tests do not need to be skipped
authorMichael Chapman <mike@very.puzzling.org>
Thu, 6 Mar 2014 06:02:47 +0000 (17:02 +1100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 7 Mar 2014 13:59:22 +0000 (14:59 +0100)
With the previous commit's securityselinuxhelper enhancements, the
SELinux security manager can be tested even without SELinux enabled on
the test system.

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
tests/securityselinuxlabeltest.c
tests/securityselinuxtest.c

index f98033de551818621133558898f18d401821eb41..3505f8c8325ab0805c3d4366212578b3d375bb07 100644 (file)
@@ -322,9 +322,6 @@ mymain(void)
 
     if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false))) {
         virErrorPtr err = virGetLastError();
-        if (err->code == VIR_ERR_CONFIG_UNSUPPORTED)
-            return EXIT_AM_SKIP;
-
         fprintf(stderr, "Unable to initialize security driver: %s\n",
                 err->message);
         return EXIT_FAILURE;
index 99b9b24807958761ae3599a813b682a021384941..feb53665fad6370d3273bf50ac1444e6935fb379 100644 (file)
@@ -272,9 +272,6 @@ mymain(void)
 
     if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false))) {
         virErrorPtr err = virGetLastError();
-        if (err->code == VIR_ERR_CONFIG_UNSUPPORTED)
-            return EXIT_AM_SKIP;
-
         fprintf(stderr, "Unable to initialize security driver: %s\n",
                 err->message);
         return EXIT_FAILURE;