summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2011-02-14 16:55:29 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2011-04-04 11:22:39 (GMT)
commitda7674a6465a311504927c0b8ed65feaf22ab5fa (patch)
tree7b5ce24c78474daddd4a4a173e553cf156fd6b29 /tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp
parentae9a504def982f32111bbcc28788d7ad1cadaa10 (diff)
downloadQt-da7674a6465a311504927c0b8ed65feaf22ab5fa.zip
Qt-da7674a6465a311504927c0b8ed65feaf22ab5fa.tar.gz
Qt-da7674a6465a311504927c0b8ed65feaf22ab5fa.tar.bz2
Test should fail, debug output here is useless
Reviewed-by: Olivier Goffart Reviewed-by: Harald Fernengel Reviewed-by: Robin Burchell
Diffstat (limited to 'tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp')
-rw-r--r--tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp b/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp
index f89e033..91d62b0 100644
--- a/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp
+++ b/tests/auto/qtemporaryfile/tst_qtemporaryfile.cpp
@@ -359,10 +359,7 @@ void tst_QTemporaryFile::stressTest()
for (int i = 0; i < iterations; ++i) {
QTemporaryFile file;
file.setAutoRemove(false);
- if (!file.open()) {
- qDebug() << "Could not open File:" << file.fileName();
- continue;
- }
+ QVERIFY2(file.open(), qPrintable(file.errorString()));
QVERIFY(!names.contains(file.fileName()));
names.insert(file.fileName());
}