]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: check for correct error message in detect-loop
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 30 May 2014 13:26:17 +0000 (10:26 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 30 May 2014 13:26:17 +0000 (10:26 -0300)
testsuite/rootfs-pristine/test-depmod/detect-loop/correct.txt [new file with mode: 0644]
testsuite/test-depmod.c

diff --git a/testsuite/rootfs-pristine/test-depmod/detect-loop/correct.txt b/testsuite/rootfs-pristine/test-depmod/detect-loop/correct.txt
new file mode 100644 (file)
index 0000000..753e7c5
--- /dev/null
@@ -0,0 +1,3 @@
+depmod: ERROR: Found 5 modules in dependency cycles!
+depmod: ERROR: Cycle detected: moduleE -> moduleD -> moduleE
+depmod: ERROR: Cycle detected: moduleB -> moduleC -> moduleA -> moduleB
index c5caec4049b42be9c8e8fdc3f285a9a0d884a9b8..ae53753e75846b1428266759a14d564adb4e85c7 100644 (file)
@@ -125,8 +125,9 @@ static DEFINE_TEST(depmod_detect_loop,
                [TC_ROOTFS] = DETECT_LOOP_ROOTFS,
        },
        .expected_fail = true,
-       );
-
+       .output = {
+               .err = DETECT_LOOP_ROOTFS "/correct.txt",
+       });
 
 
 static const struct test *tests[] = {