diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/manual tests/8 timeout | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
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; +} |