Tests fail on Windows

Issue #42 new
Ross Light
repo owner created an issue

Many path related parts of GLaDOS assume POSIX paths, which is not the case on Windows.

PS C:\Users\Ross Light\Go\src\bitbucket.org\zombiezen\glados> go test ./...
--- FAIL: TestUpdateForm (0.00 seconds)
update_test.go:72:      proj.Path("foo") = "C:\\Users\\Ross Light\\Go\\src\\bitbucket.org\\zombiezen\\glados\\usr\\src\\
hello"; want "/usr/src/hello"
FAIL    bitbucket.org/zombiezen/glados  2.863s
--- FAIL: TestLocalPutProject_New (0.00 seconds)
local_test.go:203:      vcs added = [projects\foo.json]; want [projects/foo.json]
--- FAIL: TestLocalPutProject_Rename (0.00 seconds)
local_test.go:319:      vcs added = [projects\foo.json]; want [projects/foo.json]
local_test.go:322:      vcs removed = [projects\glados.json]; want [projects/glados.json]
local_test.go:325:      vcs renamed = map[projects\glados.json:projects\foo.json]; want map[projects/glados.json:project
FAIL    bitbucket.org/zombiezen/glados/catalog  2.745s
ok      bitbucket.org/zombiezen/glados/catalog/search   0.653s
ok      bitbucket.org/zombiezen/glados/misc/jsonmerge   0.161s
ok      bitbucket.org/zombiezen/glados/vcs      1.104s

Comments (0)

  1. Log in to comment