summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-05-26 11:43:45 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-05-26 13:08:32 +0000
commitc9672f4ffa133e7f7d82e8db851a8666b6a12ce7 (patch)
treea0125083671096711b90f06076ff0b41180dc624
parenta81b6b623e8ac6da811b5de35ff4114b2bfada59 (diff)
downloadqt-creator-c9672f4ffa133e7f7d82e8db851a8666b6a12ce7.tar.gz
qbs build: Fix unittest project file
There were some subtle errors that lead to test failures. Change-Id: Ibea24a8a45a47a5c3239da77bd4ed7ddca61ec57 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
-rw-r--r--tests/unit/unittest/unittest.qbs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/unit/unittest/unittest.qbs b/tests/unit/unittest/unittest.qbs
index 05bf4f70dc..08721a3f32 100644
--- a/tests/unit/unittest/unittest.qbs
+++ b/tests/unit/unittest/unittest.qbs
@@ -3,7 +3,7 @@ import qbs.FileInfo
CppApplication {
condition: gtest.present && gmock.present
- type: base.concat("autotest")
+ type: base.concat(["autotest", "json_copy"])
consoleApplication: true
destinationDirectory: FileInfo.joinPaths(project.buildDirectory,
FileInfo.relativePath(project.ide_source_tree, sourceDirectory))
@@ -34,8 +34,7 @@ CppApplication {
"CLANG_UNIT_TESTS",
"UNIT_TESTS",
"DONT_CHECK_MESSAGE_COUNTER",
- 'QTC_RESOURCE_DIR="' + FileInfo.joinPaths(project.sourceDirectory, "share", "qtcreator")
- + '"',
+ 'QTC_RESOURCE_DIR="' + path + "/../../../share/qtcreator" + '"',
'TESTDATA_DIR="' + FileInfo.joinPaths(sourceDirectory, "data") + '"',
'ECHOSERVER="' + FileInfo.joinPaths(project.buildDirectory, "tests", "unit",
"echoserver", "echo") + '"',