summaryrefslogtreecommitdiff
path: root/smoketest/CppunitTest_smoketest.mk
diff options
context:
space:
mode:
Diffstat (limited to 'smoketest/CppunitTest_smoketest.mk')
-rw-r--r--smoketest/CppunitTest_smoketest.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/smoketest/CppunitTest_smoketest.mk b/smoketest/CppunitTest_smoketest.mk
index bd4becb7942a..3ab4ce54cea5 100644
--- a/smoketest/CppunitTest_smoketest.mk
+++ b/smoketest/CppunitTest_smoketest.mk
@@ -32,9 +32,15 @@ $(eval $(call gb_CppunitTest_use_libraries,smoketest,\
$(eval $(call gb_CppunitTest_use_ure,smoketest))
+ifeq ($(ENABLE_MACOSX_SANDBOX),YES)
+userinstallation=$(shell $(gb_DEVINSTALLROOT)/MacOS/soffice --nstemporarydirectory)
+else
+userinstallation=$(WORKDIR)/CustomTarget/smoketest
+endif
+
$(eval $(call gb_CppunitTest_add_arguments,smoketest,\
-env:arg-soffice=$(gb_JunitTest_SOFFICEARG) \
- -env:arg-user=$(WORKDIR)/CustomTarget/smoketest \
+ -env:arg-user=$(userinstallation) \
-env:arg-env=$(gb_Helper_LIBRARY_PATH_VAR)"$$$${$(gb_Helper_LIBRARY_PATH_VAR)+=$$$$$(gb_Helper_LIBRARY_PATH_VAR)}" \
-env:arg-testarg.smoketest.doc=$(WORKDIR)/Zip/smoketestdoc.sxw \
))