diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-01-06 03:37:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-06 03:37:26 +0300 |
commit | e0f362764e0705433708b656ec9f555948f4af59 (patch) | |
tree | 933ca0807ed547d3bd8afcaea95bd89f9ad35d69 /mcs/class/System | |
parent | ad64e938a2649c21afc202c541e564272a223b20 (diff) |
[System] Clear XDG_DATA_HOME and XDG_CONFIG_HOME in ApplicationSettingsBase tests (#6417)
They were set in https://github.com/mono/mono/pull/6272 but since
env vars are process wide we'd end up with non-existing paths once
the tests are done. It is safer to unset the variables after the test.
Diffstat (limited to 'mcs/class/System')
-rw-r--r-- | mcs/class/System/Test/System.Configuration/ApplicationSettingsBaseTest.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/System/Test/System.Configuration/ApplicationSettingsBaseTest.cs b/mcs/class/System/Test/System.Configuration/ApplicationSettingsBaseTest.cs index f8bc1638830..641a94b6cbf 100644 --- a/mcs/class/System/Test/System.Configuration/ApplicationSettingsBaseTest.cs +++ b/mcs/class/System/Test/System.Configuration/ApplicationSettingsBaseTest.cs @@ -184,6 +184,8 @@ namespace MonoTests.System.Configuration { [TestFixtureTearDown] public void FixtureTearDown () { + Environment.SetEnvironmentVariable ("XDG_DATA_HOME", null); + Environment.SetEnvironmentVariable ("XDG_CONFIG_HOME", null); Directory.Delete (tempDir); } |