tst_QFile: remove the timer in unixPipe and socketPair
We were basically timing the qSleep, which is pointless. We don't need
to verify that qSleep(X) spends at least X time. Because it also
doesn't. Somehow, QNX can execute 1000 ms sleeps in 996 ms.
Amends commit 30e5ff3ff2.
Pick-to: 6.6 6.5
Change-Id: I46b5dede27114be29724fffd176a66c1799075b7
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
parent
42b58f8cb4
commit
7d0431bb8b
|
|
@ -2636,8 +2636,6 @@ static void unixPipe_helper(int pipes[2])
|
|||
qt_safe_write(fd, &c, 1);
|
||||
}));
|
||||
|
||||
QElapsedTimer timer;
|
||||
timer.start();
|
||||
thr->start();
|
||||
|
||||
// synchronize with the thread having started
|
||||
|
|
@ -2659,8 +2657,6 @@ static void unixPipe_helper(int pipes[2])
|
|||
c = 0;
|
||||
QCOMPARE(f.read(&c, 1), 1);
|
||||
QCOMPARE(c, '\2');
|
||||
const int elapsed = timer.elapsed();
|
||||
QCOMPARE_GE(elapsed, Timeout);
|
||||
|
||||
thr->wait();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue