diff --git a/tests/test_config.in b/tests/test_config.in
index bc45c7d0c8756a2a9695320f11d14709ca114e24..45ffa54deec4b146c5a86e5cd6487912b2ee3a4a 100644
--- a/tests/test_config.in
+++ b/tests/test_config.in
@@ -1,7 +1,7 @@
 COMMENT: Generated file. Edit test_config.in
 
-MACRO: META -meta -meta-share ./share
-MACRO: WP -then-last -wp -wp-timeout 1 -wp-par 1 -wp-msg-key shell  -wp-cache update -wp-session tests/wp-cache @WP_SHARE@
+MACRO: META -meta -meta-share @PTEST_SHARE_DIR@
+MACRO: WP -then-last -wp -wp-timeout 1 -wp-par 1 -wp-msg-key shell  -wp-cache update -wp-session @PTEST_SUITE_DIR@/../wp-cache @WP_SHARE@
 MACRO: PRINT -then-last -print
 
 MACRO: EVA_PLUGINS eva,scope variadic