diff options
| author | Elvis Angelaccio <[email protected]> | 2021-03-13 17:18:53 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2021-03-13 17:18:53 +0100 |
| commit | ffb80cb00d8fd886051f970b5155a55b1d066fcd (patch) | |
| tree | e684d3bc61dcd0951d65520f0d79f140d31a0075 /src/tests/kfileitemmodelbenchmark.cpp | |
| parent | c1cd4fdc913857ca0c09858bc184a91dd3842235 (diff) | |
Enable test mode in all test
Diffstat (limited to 'src/tests/kfileitemmodelbenchmark.cpp')
| -rw-r--r-- | src/tests/kfileitemmodelbenchmark.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/kfileitemmodelbenchmark.cpp b/src/tests/kfileitemmodelbenchmark.cpp index 5c44a354f..8e307e2a1 100644 --- a/src/tests/kfileitemmodelbenchmark.cpp +++ b/src/tests/kfileitemmodelbenchmark.cpp @@ -7,6 +7,7 @@ #include <QTest> #include <QSignalSpy> +#include <QStandardPaths> #include <random> @@ -44,6 +45,7 @@ public: KFileItemModelBenchmark(); private Q_SLOTS: + void initTestCase(); void insertAndRemoveManyItems_data(); void insertAndRemoveManyItems(); @@ -55,6 +57,11 @@ KFileItemModelBenchmark::KFileItemModelBenchmark() { } +void KFileItemModelBenchmark::initTestCase() +{ + QStandardPaths::setTestModeEnabled(true); +} + void KFileItemModelBenchmark::insertAndRemoveManyItems_data() { QTest::addColumn<KFileItemList>("initialItems"); |
