aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2016-11-29 11:17:05 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2016-11-29 13:13:29 -0500
commit1cb9d2bc0da7ec8c9f37ebd7c2f929ab7afa9e91 (patch)
tree93f91082c90827160bcd2dcbaccfc75411b42899 /test cases
parentac78ae47a9a27a3cf53f426fd304a0d822b4f163 (diff)
downloadmeson-1cb9d2bc0da7ec8c9f37ebd7c2f929ab7afa9e91.zip
meson-1cb9d2bc0da7ec8c9f37ebd7c2f929ab7afa9e91.tar.gz
meson-1cb9d2bc0da7ec8c9f37ebd7c2f929ab7afa9e91.tar.bz2
Support skipped tests
Knowing whether a test failed to run as its prerequisites were not available, or whether those prerequisites were available and produced unexpected/incorrect results, is a useful differentiation. Add support for skipped tests by testing for exit code 77, used through autotools/piglit/etc to denote a test which detected this and decided to skip.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/common/124 test skip/meson.build4
-rw-r--r--test cases/common/124 test skip/test_skip.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/test cases/common/124 test skip/meson.build b/test cases/common/124 test skip/meson.build
new file mode 100644
index 0000000..568527f
--- /dev/null
+++ b/test cases/common/124 test skip/meson.build
@@ -0,0 +1,4 @@
+project('test skip', 'c')
+
+exe_test_skip = executable('test_skip', 'test_skip.c')
+test('test_skip', exe_test_skip)
diff --git a/test cases/common/124 test skip/test_skip.c b/test cases/common/124 test skip/test_skip.c
new file mode 100644
index 0000000..d050a61
--- /dev/null
+++ b/test cases/common/124 test skip/test_skip.c
@@ -0,0 +1,4 @@
+int main(int argc, char *argv[])
+{
+ return 77;
+}