summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralisdair sullivan <alisdair.sullivan@askuity.com>2015-09-25 20:30:48 -0400
committeralisdair sullivan <alisdair.sullivan@askuity.com>2015-09-25 20:30:48 -0400
commit09cc07e1726dd420423e4025627a3b4529e84033 (patch)
treed25ed618019186dff5d621273f422fd1fae42e0e
parentae275c6396545defc80a765a6b835d01f4c76599 (diff)
fix canonical path tests on windows
-rw-r--r--test/rebar_file_utils_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rebar_file_utils_SUITE.erl b/test/rebar_file_utils_SUITE.erl
index 0f444d5..4324a5f 100644
--- a/test/rebar_file_utils_SUITE.erl
+++ b/test/rebar_file_utils_SUITE.erl
@@ -97,8 +97,8 @@ path_from_ancestor(_Config) ->
?assertEqual({error, badparent}, rebar_file_utils:path_from_ancestor("/foo/bar/baz", "/foo/bar/baz/qux")).
canonical_path(_Config) ->
- ?assertEqual("/", rebar_file_utils:canonical_path("/")),
- ?assertEqual("/", rebar_file_utils:canonical_path("/../../..")),
+ ?assertEqual(filename:nativename("/"), rebar_file_utils:canonical_path("/")),
+ ?assertEqual(filename:nativename("/"), rebar_file_utils:canonical_path("/../../..")),
?assertEqual("/foo", rebar_file_utils:canonical_path("/foo/bar/..")),
?assertEqual("/foo", rebar_file_utils:canonical_path("/foo/../foo")),
?assertEqual("/foo", rebar_file_utils:canonical_path("/foo/.")),