From a09125897e07c49ea707477aa4a3150dfe8b4450 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 18 May 2021 12:24:24 +0200 Subject: [PATCH] Tests: Set $XDG_DATA_DIRS to empty instead of unsetting NetBSD's `env` doesn't have `-u` and this should be harmless. --- cmake/Tests.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/Tests.cmake b/cmake/Tests.cmake index f221bf5e8..d4bfb9a17 100644 --- a/cmake/Tests.cmake +++ b/cmake/Tests.cmake @@ -83,7 +83,7 @@ add_custom_target(test_prep # So define both a normal target, and a serial variant which enforces ordering. foreach(TESTTYPE test serial_test) add_custom_target(${TESTTYPE}_low_level - COMMAND env -u XDG_DATA_DIRS + COMMAND env XDG_DATA_DIRS= XDG_DATA_HOME=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_data XDG_CONFIG_HOME=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_config XDG_RUNTIME_DIR=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_runtime @@ -95,7 +95,7 @@ foreach(TESTTYPE test serial_test) add_custom_target(${TESTTYPE}_fishscript COMMAND cd tests && - env -u XDG_DATA_DIRS + env XDG_DATA_DIRS= XDG_DATA_HOME=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_data XDG_CONFIG_HOME=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_config XDG_RUNTIME_DIR=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_runtime @@ -105,7 +105,7 @@ foreach(TESTTYPE test serial_test) add_custom_target(${TESTTYPE}_interactive COMMAND cd tests && - env -u XDG_DATA_DIRS + env XDG_DATA_DIRS= XDG_DATA_HOME=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_data XDG_CONFIG_HOME=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_config XDG_RUNTIME_DIR=${CMAKE_CURRENT_BINARY_DIR}/test/xdg_runtime