diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-10-14 12:47:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 12:47:03 -0400 |
commit | ca762e2fd21266e6ed7b800d135e386c2ec48861 (patch) | |
tree | 48978ff793f2a969df196cfa7700100e5c82a2f5 /tests/test_multiprocessing.c | |
parent | 20a4c8c1707055c6d53265213f2a2d6b834aa037 (diff) | |
parent | 26000fb8e6cc08c227d4463de60e28881179e5cb (diff) | |
download | stasis-ca762e2fd21266e6ed7b800d135e386c2ec48861.tar.gz |
Merge pull request #61 from jhunkeler/restructure-the-world
Restructure the world
Diffstat (limited to 'tests/test_multiprocessing.c')
-rw-r--r-- | tests/test_multiprocessing.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_multiprocessing.c b/tests/test_multiprocessing.c index cd037d0..b9cd309 100644 --- a/tests/test_multiprocessing.c +++ b/tests/test_multiprocessing.c @@ -1,10 +1,14 @@ #include "testing.h" +#include "multiprocessing.h" static struct MultiProcessingPool *pool; char *commands[] = { - "true", - "uname -a", - "/bin/echo hello world", + "sleep 1; true", + "sleep 2; uname -a", + "sleep 3; /bin/echo hello world", + "sleep 4; true", + "sleep 5; uname -a", + "sleep 6; /bin/echo hello world", }; void test_mp_pool_init() { @@ -120,4 +124,4 @@ int main(int argc, char *argv[]) { }; STASIS_TEST_RUN(tests); STASIS_TEST_END_MAIN(); -}
\ No newline at end of file +} |