diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index 64a3687e2a4..2f124a34ee2 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -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(); }