diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-20 13:34:05 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-21 03:01:04 +0300 |
commit | dc2044c56d51c36a88f5a23b7275c4eabd0e88aa (patch) | |
tree | 0c0398b019d2a751a2bb8a2ccb2f11bbbc69852a /docs/markdown | |
parent | 79e925b8f6473bd76ea2348e69707e3919a52220 (diff) | |
download | meson-dc2044c56d51c36a88f5a23b7275c4eabd0e88aa.zip meson-dc2044c56d51c36a88f5a23b7275c4eabd0e88aa.tar.gz meson-dc2044c56d51c36a88f5a23b7275c4eabd0e88aa.tar.bz2 |
Report xpass results as failures.
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/snippets/xfail.md | 15 |
1 files changed, 15 insertions, 0 deletions
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. |