Skip to content

Commit dfd9833

Browse files
committedDec 20, 2016
Let all tests work with a proper QgsApplication instance
1 parent d169487 commit dfd9833

File tree

155 files changed

+304
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+304
-299
lines changed
 

‎src/test/qgstest.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
#ifndef QGSTEST_H
1717
#define QGSTEST_H
1818

19+
#include <QtTest/QtTest>
20+
#include "qgsapplication.h"
21+
1922
#define QGSTEST_MAIN(TestObject) \
2023
QT_BEGIN_NAMESPACE \
2124
QTEST_ADD_GPU_BLACKLIST_SUPPORT_DEFS \

‎tests/bench/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Unfortunately I don't see anything better than user time + sys time, running tes
6565

6666
To be sure that the measured values are correct, it is necessary to run more cycles and check some standard deviation or so.
6767

68-
There is also high level benchmark support available in QTestLib, it is possible to use QBENCHMARK macro + QTEST_MAIN to create easily test executable. Such test may be run with various options, some notes on modes/options:
68+
There is also high level benchmark support available in QTestLib, it is possible to use QBENCHMARK macro + QGSTEST_MAIN to create easily test executable. Such test may be run with various options, some notes on modes/options:
6969

7070
-tickcounter - reads rdtsc register (on Linux), thus it counts real time, result is not constant
7171

0 commit comments

Comments
 (0)
Please sign in to comment.