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 | |
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')
-rw-r--r-- | tests/intel-ci/meta.testlist | 1 | ||||
-rw-r--r-- | tests/meta_test.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/intel-ci/meta.testlist b/tests/intel-ci/meta.testlist index b3e29235..2ec3db58 100644 --- a/tests/intel-ci/meta.testlist +++ b/tests/intel-ci/meta.testlist @@ -1,4 +1,5 @@ igt@meta_test@pass-result +igt@meta_test@warn igt@meta_test@fail-result igt@meta_test@dmesg-pass igt@meta_test@dmesg-warn 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); |