From d527f2b9339e20500be0b1c46d81625ba0583895 Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Tue, 19 Jun 2012 11:11:13 +0300 Subject: Fix qfile autotest build for WEC7 Change-Id: I6c4b4c91ea841ccb91ad685510caaecaf51baced Reviewed-by: Andreas Holzammer Reviewed-by: Shane Kearns --- tests/auto/corelib/io/qfile/tst_qfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/auto/corelib/io/qfile/tst_qfile.cpp') diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index 440cb832d3..ae80159e88 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -3248,14 +3248,14 @@ void tst_QFile::autocloseHandle() //file is not closed, read should succeed char buf; QCOMPARE((int)QT_READ(fd_, &buf, 1), 1); - ::close(fd_); + QT_CLOSE(fd_); fd_ = -1; } { QFile file("readonlyfile"); QVERIFY(openFile(file, QIODevice::ReadOnly, OpenStream, QFile::AutoCloseHandle)); - int fd = fileno(stream_); + int fd = QT_FILENO(stream_); QCOMPARE(file.handle(), fd); file.close(); stream_ = 0; @@ -3270,7 +3270,7 @@ void tst_QFile::autocloseHandle() { QFile file("readonlyfile"); QVERIFY(openFile(file, QIODevice::ReadOnly, OpenStream, QFile::DontCloseHandle)); - QCOMPARE(file.handle(), fileno(stream_)); + QCOMPARE(file.handle(), QT_FILENO(stream_)); file.close(); QCOMPARE(file.handle(), -1); //file is not closed, read should succeed -- cgit v1.2.3