{"action":"closed","issue":{"url":"https://api.github.com/repos/Raynes/fs/issues/93","labels_url":"https://api.github.com/repos/Raynes/fs/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/Raynes/fs/issues/93/comments","events_url":"https://api.github.com/repos/Raynes/fs/issues/93/events","html_url":"https://github.com/Raynes/fs/issues/93","id":72077971,"number":93,"title":"Tests don't run cleanly on Windows","user":{"login":"jokimaki","id":2638842,"avatar_url":"https://avatars.githubusercontent.com/u/2638842?v=3","gravatar_id":"","url":"https://api.github.com/users/jokimaki","html_url":"https://github.com/jokimaki","followers_url":"https://api.github.com/users/jokimaki/followers","following_url":"https://api.github.com/users/jokimaki/following{/other_user}","gists_url":"https://api.github.com/users/jokimaki/gists{/gist_id}","starred_url":"https://api.github.com/users/jokimaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jokimaki/subscriptions","organizations_url":"https://api.github.com/users/jokimaki/orgs","repos_url":"https://api.github.com/users/jokimaki/repos","events_url":"https://api.github.com/users/jokimaki/events{/privacy}","received_events_url":"https://api.github.com/users/jokimaki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-30T06:36:27Z","updated_at":"2016-01-14T05:40:57Z","closed_at":"2016-01-14T05:40:57Z","body":"There are a couple of issues when running tests on Windows 7.\r\n\r\nAs Windows doesn't support symlinks, an exception is thrown:\r\n\r\n    Exception in thread \"main\" java.nio.file.FileSystemException: C:\\work\\fs\\test\\me\\raynes\\testfiles\\soft.link: A required privilege is not held by the client.\r\n\r\n        at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)\r\n        at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)\r\n        at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)\r\n        at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(Unknown Source)\r\n        at java.nio.file.Files.createSymbolicLink(Unknown Source)\r\n        at me.raynes.fs$sym_link.invoke(fs.clj:192)\r\n        at me.raynes.core_test$eval8342$fn__8343$fn__8344.invoke(core_test.clj:357)\r\n        (...)\r\n\r\nTwo files are left behind by tests:\r\n* test/me/raynes/testfiles/hard.link (perhaps because of the exception, I didn't investigate further yet)\r\n* test/me/raynes/testfiles/fro.zip (see #92)\r\n\r\nWhat do you think would be the best approach to fix incompatibilities with Windows? Do you know of any way to check if the OS supports symlinks, or should we just check os.name property?"}}