Avoid using check as an identifier.

Avoids conflict with Mac OS.

Change-Id: I72a1218d101fdf2fa40f80934a6157ed26e699a1
Reviewed-by: hjk <qthjk@ovi.com>
bb10
Stephen Kelly 2012-01-09 19:08:08 +01:00 committed by Qt by Nokia
parent 7acac24869
commit 4fe9ff1001
1 changed files with 8 additions and 8 deletions

View File

@ -163,11 +163,11 @@ void tst_qfileopenevent::handleLifetime()
qFile.close();
// check the content
QFile check("testHandleLifetime");
check.open(QFile::ReadOnly);
QString content(check.readAll());
QFile checkContent("testHandleLifetime");
checkContent.open(QFile::ReadOnly);
QString content(checkContent.readAll());
QCOMPARE(content, QLatin1String("test content+closed original handles"));
check.close();
checkContent.close();
QFile::remove(QLatin1String("testHandleLifetime"));
}
@ -214,11 +214,11 @@ void tst_qfileopenevent::sendAndReceive()
QCoreApplication::instance()->sendPostedEvents();
// check the content
QFile check("testSendAndReceive");
QCOMPARE(check.open(QFile::ReadOnly), true);
QString content(check.readAll());
QFile checkContent("testSendAndReceive");
QCOMPARE(checkContent.open(QFile::ReadOnly), true);
QString content(checkContent.readAll());
QCOMPARE(content, QLatin1String("sending+received"));
check.close();
checkContent.close();
QFile::remove(QLatin1String("testSendAndReceive"));
}