From: Michal Privoznik <mprivozn@redhat.com> This is a test case for one of previous commits that forbade relabelling cdroms with a directory as their source. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> --- tests/qemusecuritytest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/qemusecuritytest.c b/tests/qemusecuritytest.c index a46651e6bd..43005c7260 100644 --- a/tests/qemusecuritytest.c +++ b/tests/qemusecuritytest.c @@ -275,6 +275,11 @@ mymain(void) DO_TEST_DOMAIN("x86_64-q35-graphics"); DO_TEST_DOMAIN("x86_64-q35-headless"); DO_TEST_DOMAIN("boot-complex"); + /* Rerun the same test but now mimic that one disk is a dir + * instead of regular file. */ + g_setenv(FILE_MIMIC_DIR, "/dev/HostVG/hdc", TRUE); + DO_TEST_DOMAIN_ERROR_UNSUPPORTED("boot-complex"); + g_unsetenv(FILE_MIMIC_DIR); cleanup: qemuTestDriverFree(&driver); -- 2.56.0