summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-09-25 20:34:39 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-09-25 20:34:39 -0400
commit4d45f27955eb0b05d4a5cd389e33edcf99831709 (patch)
tree3deb728c8838c9f9f3f259adad5d36231da9ccf6
parentd0bcd95813cfa6f76fdc26f0703600f122174443 (diff)
parent09cc07e1726dd420423e4025627a3b4529e84033 (diff)
Merge pull request #837 from talentdeficit/extract_path_utils
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/.")),