summaryrefslogtreecommitdiff
path: root/tests/auto/shared.h
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-05-15 21:30:26 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2020-05-28 18:42:17 +0000
commit65eb5b2b2b4aa67052d959a207d97c1987be1cb3 (patch)
tree0df4869420dd6518936abe6d1c4a1808b737f691 /tests/auto/shared.h
parent25bbd9f0d6877a8f6b245708f6cfdfd5472ea0ff (diff)
downloadqbs-65eb5b2b2b4aa67052d959a207d97c1987be1cb3.tar.gz
Add blackbox examples test
It is necessary to build examples with different profiles pretty much like it is done with other tests. Thus, build examples as a separate blackbox test. Change-Id: If4e910fb60a6d51e1a0c690e7a4ece4b17bd5b95 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/shared.h')
-rw-r--r--tests/auto/shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/shared.h b/tests/auto/shared.h
index beda8fff3..8dced2062 100644
--- a/tests/auto/shared.h
+++ b/tests/auto/shared.h
@@ -335,6 +335,8 @@ inline QString testWorkDir(const QString &testName)
inline bool copyDllExportHeader(const QString &srcDataDir, const QString &targetDataDir)
{
QFile sourceFile(srcDataDir + "/../../dllexport.h");
+ if (!sourceFile.exists())
+ return true;
const QString targetPath = targetDataDir + "/dllexport.h";
QFile::remove(targetPath);
return sourceFile.copy(targetPath);