Commit 424013e5 authored by Maarten Lankhorst's avatar Maarten Lankhorst

igt/meta_test: Add a warn subtest to make sure warnings are caught as expected.

Cc: Marta Löfstedt <marta.lofstedt@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Marta Löfstedt's avatarMarta Lofstedt <marta.lofstedt@intel.com>
parent 3671dfc2
igt@meta_test@pass-result
igt@meta_test@warn
igt@meta_test@fail-result
igt@meta_test@dmesg-pass
igt@meta_test@dmesg-warn
......
......@@ -128,6 +128,12 @@ igt_main
igt_subtest("pass-result")
test_result(true);
igt_subtest("warn") {
igt_warn("This is a test that should fail with a warning\n");
test_result(true);
}
igt_subtest("fail-result")
test_result(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment