aboutsummaryrefslogtreecommitdiff
path: root/manual tests
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-07-22 23:57:00 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-07-23 22:28:03 +0300
commitfa74ef4c5785453ebdd1aaa1380aa7a632336c5b (patch)
tree6494ce9b4db6ff92ea3a4e3553727d58cfa6e970 /manual tests
parent5148972bfe5f4d2012ec29cf913ec8cf5eafd47e (diff)
downloadmeson-fa74ef4c5785453ebdd1aaa1380aa7a632336c5b.zip
meson-fa74ef4c5785453ebdd1aaa1380aa7a632336c5b.tar.gz
meson-fa74ef4c5785453ebdd1aaa1380aa7a632336c5b.tar.bz2
Added timeout kwarg to tests.
Diffstat (limited to 'manual tests')
-rw-r--r--manual tests/8 timeout/meson.build8
-rw-r--r--manual tests/8 timeout/sleepprog.c6
2 files changed, 14 insertions, 0 deletions
diff --git a/manual tests/8 timeout/meson.build b/manual tests/8 timeout/meson.build
new file mode 100644
index 0000000..8ba7d4b
--- /dev/null
+++ b/manual tests/8 timeout/meson.build
@@ -0,0 +1,8 @@
+project('timeout', 'c')
+
+# This creates a test that times out. It is a manual test
+# because currently there is no test suite for test that are expected
+# to fail during unit test phase.
+
+exe = executable('sleepprog', 'sleepprog.c')
+test('timeout', exe, timeout : 1)
diff --git a/manual tests/8 timeout/sleepprog.c b/manual tests/8 timeout/sleepprog.c
new file mode 100644
index 0000000..e371482
--- /dev/null
+++ b/manual tests/8 timeout/sleepprog.c
@@ -0,0 +1,6 @@
+#include<unistd.h>
+
+int main(int argc, char **argv) {
+ sleep(1000);
+ return 0;
+}