From fa74ef4c5785453ebdd1aaa1380aa7a632336c5b Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 22 Jul 2015 23:57:00 +0300 Subject: Added timeout kwarg to tests. --- manual tests/8 timeout/meson.build | 8 ++++++++ manual tests/8 timeout/sleepprog.c | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 manual tests/8 timeout/meson.build create mode 100644 manual tests/8 timeout/sleepprog.c (limited to 'manual tests') 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 + +int main(int argc, char **argv) { + sleep(1000); + return 0; +} -- cgit v1.1