From dc2044c56d51c36a88f5a23b7275c4eabd0e88aa Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 20 Apr 2019 13:34:05 +0300 Subject: Report xpass results as failures. --- docs/markdown/snippets/xfail.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/markdown/snippets/xfail.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/xfail.md b/docs/markdown/snippets/xfail.md new file mode 100644 index 0000000..5392fa9 --- /dev/null +++ b/docs/markdown/snippets/xfail.md @@ -0,0 +1,15 @@ +## Tests that should fail but did not are now errors + +You can tag a test as needing to fail like this: + +```meson +test('shoulfail', exe, should_fail: true) +``` + +If the test passes the problem is reported in the error logs but due +to a bug it was not reported in the test runner's exit code. Starting +from this release the unexpected passes are properly reported in the +test runner's exit code. This means that test runs that were passing +in earlier versions of Meson will report failures with the current +version. This is a good thing, though, since it reveals an error in +your test suite that has, until now, gone unnoticed. -- cgit v1.1