mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
tests: SELinux tests do not need to be skipped
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>
This commit is contained in:
parent
4d4f977ab5
commit
5eb5fb80f7
@ -322,9 +322,6 @@ mymain(void)
|
|||||||
|
|
||||||
if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false))) {
|
if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false))) {
|
||||||
virErrorPtr err = virGetLastError();
|
virErrorPtr err = virGetLastError();
|
||||||
if (err->code == VIR_ERR_CONFIG_UNSUPPORTED)
|
|
||||||
return EXIT_AM_SKIP;
|
|
||||||
|
|
||||||
fprintf(stderr, "Unable to initialize security driver: %s\n",
|
fprintf(stderr, "Unable to initialize security driver: %s\n",
|
||||||
err->message);
|
err->message);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
@ -272,9 +272,6 @@ mymain(void)
|
|||||||
|
|
||||||
if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false))) {
|
if (!(mgr = virSecurityManagerNew("selinux", "QEMU", false, true, false))) {
|
||||||
virErrorPtr err = virGetLastError();
|
virErrorPtr err = virGetLastError();
|
||||||
if (err->code == VIR_ERR_CONFIG_UNSUPPORTED)
|
|
||||||
return EXIT_AM_SKIP;
|
|
||||||
|
|
||||||
fprintf(stderr, "Unable to initialize security driver: %s\n",
|
fprintf(stderr, "Unable to initialize security driver: %s\n",
|
||||||
err->message);
|
err->message);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user