diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-02-21 17:51:10 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-02 09:07:54 +0100 |
commit | f2e513791e56886a145a8e72854841b9f9122ca6 (patch) | |
tree | 592827d0265e9c75f12bf73b2cb30f4138260c03 /test cases/failing test | |
parent | d830945224cf6d109189da03e924d2dffc6214cd (diff) | |
download | meson-f2e513791e56886a145a8e72854841b9f9122ca6.zip meson-f2e513791e56886a145a8e72854841b9f9122ca6.tar.gz meson-f2e513791e56886a145a8e72854841b9f9122ca6.tar.bz2 |
mtest: add support for hard errors
Hard errors also come from the GNU Automake test protocol. They happen when
e.g., the set-up of a test case scenario fails, or when some
other unexpected or highly undesirable condition is encountered.
TAP will use them for parse errors too. Add them to the exitcode protocol
first.
Diffstat (limited to 'test cases/failing test')
-rw-r--r-- | test cases/failing test/4 hard error/main.c | 3 | ||||
-rw-r--r-- | test cases/failing test/4 hard error/meson.build | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test cases/failing test/4 hard error/main.c b/test cases/failing test/4 hard error/main.c new file mode 100644 index 0000000..a1e705a --- /dev/null +++ b/test cases/failing test/4 hard error/main.c @@ -0,0 +1,3 @@ +int main(void) { + return 99; +} diff --git a/test cases/failing test/4 hard error/meson.build b/test cases/failing test/4 hard error/meson.build new file mode 100644 index 0000000..6979b04 --- /dev/null +++ b/test cases/failing test/4 hard error/meson.build @@ -0,0 +1,4 @@ +project('trivial', 'c') + +# Exit code 99 even overrides should_fail +test('My Test', executable('main', 'main.c'), should_fail: true) |