summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks')
-rw-r--r--tests/benchmarks/qdir/tst_qdir.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/benchmarks/qdir/tst_qdir.cpp b/tests/benchmarks/qdir/tst_qdir.cpp
index edb2811..7977e28 100644
--- a/tests/benchmarks/qdir/tst_qdir.cpp
+++ b/tests/benchmarks/qdir/tst_qdir.cpp
@@ -87,8 +87,7 @@ private slots:
WIN32_FIND_DATA fd;
HANDLE hSearch = FindFirstFileW(appendedPath, &fd);
- if (hSearch != INVALID_HANDLE_VALUE)
- return;
+ QVERIFY(hSearch == INVALID_HANDLE_VALUE);
QBENCHMARK {
do {
@@ -99,8 +98,7 @@ private slots:
#else
QDir testdir(QDir::tempPath() + QLatin1String("/test_speed"));
DIR *dir = opendir(qPrintable(testdir.absolutePath()));
- if (!dir)
- return;
+ QVERIFY(dir);
QVERIFY(!chdir(qPrintable(testdir.absolutePath())));
QBENCHMARK {