summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qfile/tst_qfile.cpp
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2018-04-18 15:40:21 +0300
committerKari Oikarinen <kari.oikarinen@qt.io>2018-04-23 12:45:32 +0000
commit12559058b029720527c718a876889b0850ed1590 (patch)
tree595b79336a446aae3026eee1ca330de13d25007c /tests/auto/corelib/io/qfile/tst_qfile.cpp
parent7b87bdff1ab29066d9ef03daded6f8306022bca4 (diff)
tst_QFile: Don't expect Windows HANDLE equality in nativeHandleLeaks()
That check is flaky on Windows. It doesn't seem to be testing Qt functionality. I also don't see CreateFile2() documentation mentioning any guarantees that opening the same file twice would give the same HANDLE each time. Change-Id: Ica2e60571ae9fc39bf822803a2a9dd6add8323d7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/corelib/io/qfile/tst_qfile.cpp')
-rw-r--r--tests/auto/corelib/io/qfile/tst_qfile.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp
index cd13e2bd19..ad00e25e7d 100644
--- a/tests/auto/corelib/io/qfile/tst_qfile.cpp
+++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp
@@ -2878,10 +2878,6 @@ void tst_QFile::nativeHandleLeaks()
#endif
QCOMPARE( fd2, fd1 );
-
-#ifdef Q_OS_WIN
- QCOMPARE( handle2, handle1 );
-#endif
}
void tst_QFile::readEof_data()