summaryrefslogtreecommitdiff
path: root/test/process/process_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/process/process_test.cpp')
-rw-r--r--test/process/process_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/process/process_test.cpp b/test/process/process_test.cpp
index d264555e..701f156b 100644
--- a/test/process/process_test.cpp
+++ b/test/process/process_test.cpp
@@ -47,12 +47,13 @@ protected:
int exitCode = 42;
vector<std::string> args;
args.push_back(to_string(exitCode));
+ proc_.finished.connect(this, &ProcessTest::procFinished);
+
int ret = proc_.start("/proc/self/exe", args);
if (ret) {
cerr << "failed to start process" << endl;
return TestFail;
}
- proc_.finished.connect(this, &ProcessTest::procFinished);
timeout.start(100);
while (timeout.isRunning())