aboutsummaryrefslogtreecommitdiff
path: root/tests/test_multiprocessing.c
diff options
context:
space:
mode:
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
+}