diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-01-13 00:52:50 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-01-13 00:52:50 +0100 |
commit | 73262741e8480f6161659275c9d9239e6351d011 (patch) | |
tree | 47d6987cd3a6ef021f0f1191882d0a906b9428bd /tests/integration/indicator-sound-test-base.cpp | |
parent | 66412674cb282a7f0e0c8c29cfeb1d2f8c4c3de1 (diff) | |
download | ayatana-indicator-sound-73262741e8480f6161659275c9d9239e6351d011.tar.gz ayatana-indicator-sound-73262741e8480f6161659275c9d9239e6351d011.tar.bz2 ayatana-indicator-sound-73262741e8480f6161659275c9d9239e6351d011.zip |
tests/integration/: Provider a FAKE_HOME for pulseaudio to have a secure location for its user config files.
Diffstat (limited to 'tests/integration/indicator-sound-test-base.cpp')
-rw-r--r-- | tests/integration/indicator-sound-test-base.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/integration/indicator-sound-test-base.cpp b/tests/integration/indicator-sound-test-base.cpp index 01d6f55..1f10dbe 100644 --- a/tests/integration/indicator-sound-test-base.cpp +++ b/tests/integration/indicator-sound-test-base.cpp @@ -54,6 +54,7 @@ IndicatorSoundTestBase::~IndicatorSoundTestBase() void IndicatorSoundTestBase::SetUp() { + setenv("HOME", FAKE_HOME, true); setenv("XDG_DATA_DIRS", XDG_DATA_DIRS, true); setenv("DBUS_SYSTEM_BUS_ADDRESS", dbusTestRunner.systemBus().toStdString().c_str(), true); setenv("DBUS_SESSION_BUS_ADDRESS", dbusTestRunner.sessionBus().toStdString().c_str(), true); @@ -80,6 +81,7 @@ void IndicatorSoundTestBase::SetUp() void IndicatorSoundTestBase::TearDown() { unsetenv("XDG_DATA_DIRS"); + unsetenv("HOME"); unsetenv("PULSE_SERVER"); unsetenv("DBUS_SYSTEM_BUS_ADDRESS"); } |