Skip to content

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

Closed

Description

@sebright

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.

Activity

  1. added a commit that references this issue on Jun 26, 2015
    978b774
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions