diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-04-14 22:30:46 +0300 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-04-15 12:42:46 +0000 |
commit | a79df8e1e78384745e68d365b23cc77656c060aa (patch) | |
tree | c81b132422e64525827696cf574ce4520c440c56 /tests/manual/process | |
parent | 5a2b5036abdfb9131acd7e4618e2d8e13d487d63 (diff) |
Utils: Make SynchronousProcess use second based timeouts
Change-Id: Ie2de2359225017cae7181bee0df17542fa36efd8
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'tests/manual/process')
-rw-r--r-- | tests/manual/process/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/process/mainwindow.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/process/main.cpp b/tests/manual/process/main.cpp index 0b1ab28ef1b..a8d193434d8 100644 --- a/tests/manual/process/main.cpp +++ b/tests/manual/process/main.cpp @@ -60,7 +60,7 @@ static int testSynchronous(const QString &cmd, const QStringList &args) QByteArray stdOut; QByteArray stdErr; - if (!Utils::SynchronousProcess::readDataFromProcess(p, 2000, &stdOut, &stdErr)) { + if (!Utils::SynchronousProcess::readDataFromProcess(p, 2, &stdOut, &stdErr)) { std::fputs("Timeout", stderr); return -3; } diff --git a/tests/manual/process/mainwindow.cpp b/tests/manual/process/mainwindow.cpp index 1360c2f3ad5..51b645a3fba 100644 --- a/tests/manual/process/mainwindow.cpp +++ b/tests/manual/process/mainwindow.cpp @@ -57,7 +57,7 @@ void MainWindow::test() const QString cmd = args.front(); args.pop_front(); Utils::SynchronousProcess process; - process.setTimeout(2000); + process.setTimeoutS(2); qDebug() << "Async: " << cmd << args; connect(&process, SIGNAL(stdOut(QString,bool)), this, SLOT(append(QString))); connect(&process, SIGNAL(stdErr(QString,bool)), this, SLOT(append(QString))); |