From 8df88496e24c80298ff8d8d1d36a67974e56a7e2 Mon Sep 17 00:00:00 2001 From: Noah Campbell Date: Fri, 20 Sep 2013 20:05:20 -0700 Subject: [PATCH] Fix breaking test cases on unix platform Rename platform parameter file to agnostic name. Both darwin and linux can share the same paramters. --- .../{filesystem_linux_test.go => filesystem_unix_test.go} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename source/{filesystem_linux_test.go => filesystem_unix_test.go} (60%) diff --git a/source/filesystem_linux_test.go b/source/filesystem_unix_test.go similarity index 60% rename from source/filesystem_linux_test.go rename to source/filesystem_unix_test.go index d3e09b261..fffc0c3b3 100644 --- a/source/filesystem_linux_test.go +++ b/source/filesystem_unix_test.go @@ -1,13 +1,14 @@ +// +build linux,darwin package source // // NOTE, any changes here need to be reflected in filesystem_windows_test.go // -var platformBase = "foo/bar/boo/" +var platformBase = "/base/" 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/"}, + {"/base/e/f/3file", "3file", "aaa", "f", "e/f/"}, + {"section/foo.rss", "foo.rss", "aaa", "section", "section/"}, }