aboutsummaryrefslogtreecommitdiff
path: root/tests/test_multiprocessing.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-10-14 12:47:03 -0400
committerGitHub <noreply@github.com>2024-10-14 12:47:03 -0400
commitca762e2fd21266e6ed7b800d135e386c2ec48861 (patch)
tree48978ff793f2a969df196cfa7700100e5c82a2f5 /tests/test_multiprocessing.c
parent20a4c8c1707055c6d53265213f2a2d6b834aa037 (diff)
parent26000fb8e6cc08c227d4463de60e28881179e5cb (diff)
downloadstasis-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.c12
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
+}