aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-04 12:00:59 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-06-04 12:00:59 -0700
commitcc90f9cf803bc4aba928b2a80be451d9b717c5f0 (patch)
tree92644a80d4f288aaf380aef5b50ab724a47db456 /fish_tests.cpp
parent457e6a5f46a2529bd75305ae7b995a0f43f90654 (diff)
path_make_canonical mishandles empty string.
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index a6b4b2ab..002912ac 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -576,7 +576,14 @@ static void test_path()
if( canon != L"/foo/bar" )
{
err( L"Bug in canonical PATH code" );
- }
+ }
+
+ path = L"/";
+ path_make_canonical(path);
+ if (path != L"/")
+ {
+ err( L"Bug in canonical PATH code" );
+ }
}
/** Test is_potential_path */