forked from qt-creator/qt-creator
		
	UnitTests: Fix ODR problem for print functions
You have to include them for all translationunits because otherwise default print function are generated. So you get to different implementations for the same symbol. Change-Id: I732d2e1f1774f72acdbb49cbe1848d31ca3f5c98 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
		| @@ -23,6 +23,8 @@ | ||||
| ** | ||||
| ****************************************************************************/ | ||||
|  | ||||
| #include "googletest.h" | ||||
|  | ||||
| #include <sqliteglobal.h> | ||||
|  | ||||
| #include <utils/temporarydirectory.h> | ||||
| @@ -30,9 +32,6 @@ | ||||
| #include <QCoreApplication> | ||||
| #include <QLoggingCategory> | ||||
|  | ||||
| #include <gtest/gtest.h> | ||||
| #include "gtest-qt-printing.h" | ||||
|  | ||||
| #ifdef WITH_BENCHMARKS | ||||
| #include <benchmark/benchmark.h> | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user