Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user-config unit tests overwrite the user config file on Windows #2678

Closed
grayjay opened this issue Jun 25, 2015 · 0 comments · Fixed by #2684
Closed

user-config unit tests overwrite the user config file on Windows #2678

grayjay opened this issue Jun 25, 2015 · 0 comments · Fixed by #2684

Comments

@grayjay
Copy link
Collaborator

grayjay commented Jun 25, 2015

The tests operate on a test config file by setting HOME to point to a test directory and then calling functions that modify the default config file. cabal locates the default config file by calling System.Directory.getAppUserDataDirectory. HOME has no effect on the location of the App Data directory on Windows, so the tests modify the real config file and its backup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant