diff --git a/src/core/ddsc/tests/psmx_cdds_impl.c b/src/core/ddsc/tests/psmx_cdds_impl.c
index f4e4a104e2..f1308dae91 100644
--- a/src/core/ddsc/tests/psmx_cdds_impl.c
+++ b/src/core/ddsc/tests/psmx_cdds_impl.c
@@ -23,18 +23,19 @@
#include "psmx_cdds_data.h"
#define DDS_DOMAINID 50
+#define DDS_CONFIG_BASE \
+ "${CYCLONEDDS_URI}," \
+ "" \
+ "${CYCLONEDDS_PID}" \
+ ""
#if 1
-#define DDS_CONFIG "${CYCLONEDDS_URI}"
+#define DDS_CONFIG DDS_CONFIG_BASE
#else
-#define DDS_CONFIG \
- "${CYCLONEDDS_URI}," \
- "" \
- "${CYCLONEDDS_PID}" \
- "" \
- "" \
- "cyclonedds_psmx_impl.${CYCLONEDDS_DOMAIN_ID}.${CYCLONEDDS_PID}.log" \
- "finest" \
- ""
+#define DDS_CONFIG DDS_CONFIG_BASE \
+ "" \
+ "cyclonedds_psmx_impl.${CYCLONEDDS_DOMAIN_ID}.${CYCLONEDDS_PID}.log" \
+ "finest" \
+ ""
#endif
#define ON_DATA_INIT 0