diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-06-20 10:27:16 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-06-20 11:01:01 +0200 |
commit | 424013e53fd32d4085a100257745444fabf9c97a (patch) | |
tree | 5b78488b5db848101af5eef472a80d5afed7d229 /tests/meta_test.c | |
parent | 3671dfc264da055ed36786caf8abc8843e003a1b (diff) |
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: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
Diffstat (limited to 'tests/meta_test.c')
-rw-r--r-- | tests/meta_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/meta_test.c b/tests/meta_test.c index c02cf8bc..a67b4c5e 100644 --- a/tests/meta_test.c +++ b/tests/meta_test.c @@ -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); |