Commit 89de8dd7 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Run tests with HOME unset again

parent a6de959e
...@@ -34,7 +34,13 @@ if check.found() ...@@ -34,7 +34,13 @@ if check.found()
env.set('HOME', '/home/test') env.set('HOME', '/home/test')
test('tests-with-home', tests, env: env) test('tests-with-home', tests, env: env)
# Cannot unset environment variables. env_bin = find_program('env', required: false)
# env.unset('HOME') if env_bin.found()
# test('tests-without-home', tests, env: env) env = environment()
env.set('XDG_TEST_HELPER_PATH', meson.current_build_dir())
test('tests-without-home', env_bin,
args: ['-u', 'HOME', tests],
env: env)
endif endif
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment