diff --git a/tests/auto/cplusplus/shared/shared.pri b/tests/auto/cplusplus/shared/shared.pri
index 924cda99911af638da1fddff3ca5219825940a06..63573f07c69ac9770e2b8615d0e2ee1e238d21c2 100644
--- a/tests/auto/cplusplus/shared/shared.pri
+++ b/tests/auto/cplusplus/shared/shared.pri
@@ -1,5 +1,5 @@
 
-DEFINES += HAVE_QT CPLUSPLUS_WITH_NAMESPACE
+DEFINES += CPLUSPLUS_WITH_NAMESPACE
 INCLUDEPATH += $$PWD/../../../../src/shared/cplusplus
 DEPENDPATH  += $$INCLUDEPATH .
 LIBS += -L$$PWD -lCPlusPlusTestSupport
diff --git a/tests/auto/cplusplus/shared/shared.pro b/tests/auto/cplusplus/shared/shared.pro
index 2f84af560bcdf0a8a2704b83a5a3cb19e0a4c7db..a3746386dfa6752b0212ab35a816a77e89dc9503 100644
--- a/tests/auto/cplusplus/shared/shared.pro
+++ b/tests/auto/cplusplus/shared/shared.pro
@@ -3,6 +3,7 @@ TEMPLATE = lib
 TARGET = CPlusPlusTestSupport
 CONFIG += static
 QT = core
+DESTDIR = $$PWD
 
-DEFINES += HAVE_QT CPLUSPLUS_WITH_NAMESPACE
+DEFINES += CPLUSPLUS_WITH_NAMESPACE
 include($$PWD/../../../../src/shared/cplusplus/cplusplus.pri)