diff options
Diffstat (limited to 'meson/manual tests/8 timeout')
-rw-r--r-- | meson/manual tests/8 timeout/meson.build | 8 | ||||
-rw-r--r-- | meson/manual tests/8 timeout/sleepprog.c | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/meson/manual tests/8 timeout/meson.build b/meson/manual tests/8 timeout/meson.build new file mode 100644 index 000000000..8ba7d4b43 --- /dev/null +++ b/meson/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/meson/manual tests/8 timeout/sleepprog.c b/meson/manual tests/8 timeout/sleepprog.c new file mode 100644 index 000000000..8875e126a --- /dev/null +++ b/meson/manual tests/8 timeout/sleepprog.c @@ -0,0 +1,6 @@ +#include<unistd.h> + +int main(void) { + sleep(1000); + return 0; +} |