summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-11-30 13:23:47 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-11-30 13:29:48 (GMT)
commit634a2c456732903b116a73e674f1391f77d530d8 (patch)
treec24f806e128cd5b14ce4584a1112a7e0bd65158d /tests
parentbd1370f577f486ac994c7856373f52306de23068 (diff)
downloadQt-634a2c456732903b116a73e674f1391f77d530d8.zip
Qt-634a2c456732903b116a73e674f1391f77d530d8.tar.gz
Qt-634a2c456732903b116a73e674f1391f77d530d8.tar.bz2
Make sure that cleanupTestCase() do not stat
The benchmark of QDir is also used to minimize the number of stats(). The test initialization and cleanup should avoid stats(). Reviewed-by: Markus Goetz
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/qdir/tst_qdir.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/benchmarks/qdir/tst_qdir.cpp b/tests/benchmarks/qdir/tst_qdir.cpp
index 2e4a28a..fd558d3 100644
--- a/tests/benchmarks/qdir/tst_qdir.cpp
+++ b/tests/benchmarks/qdir/tst_qdir.cpp
@@ -68,7 +68,8 @@ public slots:
void cleanupTestCase() {
{
QDir testdir(QDir::tempPath() + QLatin1String("/test_speed"));
-
+ testdir.setSorting(QDir::Unsorted);
+ testdir.setFilter(QDir::AllEntries | QDir::System | QDir::Hidden);
foreach (const QString &filename, testdir.entryList()) {
testdir.remove(filename);
}