Fix breaking test cases on unix platform
authorNoah Campbell <noahcampbell@gmail.com>
Sat, 21 Sep 2013 03:05:20 +0000 (20:05 -0700)
committerNoah Campbell <noahcampbell@gmail.com>
Sat, 21 Sep 2013 03:08:52 +0000 (20:08 -0700)
Rename platform parameter file to agnostic name. Both darwin and linux
can share the same paramters.

source/filesystem_linux_test.go [deleted file]
source/filesystem_unix_test.go [new file with mode: 0644]

diff --git a/source/filesystem_linux_test.go b/source/filesystem_linux_test.go
deleted file mode 100644 (file)
index d3e09b2..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-package source
-
-//
-// NOTE, any changes here need to be reflected in filesystem_windows_test.go
-//
-var platformBase = "foo/bar/boo/"
-var platformPaths = []TestPath{
-       {"foobar", "foobar", "aaa", "", ""},
-       {"b/1file", "1file", "aaa", "b", "b/"},
-       {"c/d/2file", "2file", "aaa", "d", "c/d/"},
-       {"/e/f/3file", "3file", "aaa", "f", "e/f/"},
-       {"section\\foo.rss", "foo.rss", "aaa", "section", "section/"},
-}
diff --git a/source/filesystem_unix_test.go b/source/filesystem_unix_test.go
new file mode 100644 (file)
index 0000000..fffc0c3
--- /dev/null
@@ -0,0 +1,14 @@
+// +build linux,darwin
+package source
+
+//
+// NOTE, any changes here need to be reflected in filesystem_windows_test.go
+//
+var platformBase = "/base/"
+var platformPaths = []TestPath{
+       {"foobar", "foobar", "aaa", "", ""},
+       {"b/1file", "1file", "aaa", "b", "b/"},
+       {"c/d/2file", "2file", "aaa", "d", "c/d/"},
+       {"/base/e/f/3file", "3file", "aaa", "f", "e/f/"},
+       {"section/foo.rss", "foo.rss", "aaa", "section", "section/"},
+}