From: Lucas De Marchi Date: Fri, 30 May 2014 13:26:17 +0000 (-0300) Subject: testsuite: check for correct error message in detect-loop X-Git-Tag: v18~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a2d0e6187b37d3f7f5f5153018695d35740afa2;p=thirdparty%2Fkmod.git testsuite: check for correct error message in detect-loop --- 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 index 00000000..753e7c5c --- /dev/null +++ b/testsuite/rootfs-pristine/test-depmod/detect-loop/correct.txt @@ -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 diff --git a/testsuite/test-depmod.c b/testsuite/test-depmod.c index c5caec40..ae53753e 100644 --- a/testsuite/test-depmod.c +++ b/testsuite/test-depmod.c @@ -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[] = {