diff --git a/tests/auto/core/tests.pri b/tests/auto/core/tests.pri
index 7046487dbaeb8a44e7accf7aaabe5acdfe3ac069..35dd94566081838fc81a4b48f6607ea274c143fd 100644
--- a/tests/auto/core/tests.pri
+++ b/tests/auto/core/tests.pri
@@ -13,6 +13,3 @@ INCLUDEPATH += $$PWD
 
 QT += testlib network webenginewidgets widgets
 osx: CONFIG -= app_bundle
-
-# This define is used by some tests to look up resources in the source tree
-DEFINES += TESTS_SOURCE_DIR=\\\"$$PWD/\\\"