diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-05-30 10:26:17 -0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2014-05-30 10:26:17 -0300 |
commit | 7a2d0e6187b37d3f7f5f5153018695d35740afa2 (patch) | |
tree | ae99303c0d93fc71437bd1f3f4ebd234b2414a4a | |
parent | d7293a1628ab14062cddb17d167fe094081a3221 (diff) | |
download | kmod-7a2d0e6187b37d3f7f5f5153018695d35740afa2.tar.gz kmod-7a2d0e6187b37d3f7f5f5153018695d35740afa2.tar.bz2 kmod-7a2d0e6187b37d3f7f5f5153018695d35740afa2.zip |
testsuite: check for correct error message in detect-loop
-rw-r--r-- | testsuite/rootfs-pristine/test-depmod/detect-loop/correct.txt | 3 | ||||
-rw-r--r-- | testsuite/test-depmod.c | 5 |
2 files changed, 6 insertions, 2 deletions
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 0000000..753e7c5 --- /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 c5caec4..ae53753 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[] = { |