aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-07 21:23:12 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-02-07 21:23:12 -0800
commitc0e783eb6e8c12d12c9dfbc62c4d5f820e6df61d (patch)
treea7c1f4a3669bd7e69d10d802942acf888e51cfa1 /fish_tests.cpp
parent399c78fbf74f0495c6b3ffd3871356c7dfdfbb13 (diff)
Excised some halloc
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 66b6a643..e329120f 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -752,18 +752,13 @@ static void test_path()
{
say( L"Testing path functions" );
- void *context = halloc( 0, 0 );
-
-
- wchar_t *can = path_make_canonical( context, L"//foo//////bar/" );
-
- if( wcscmp( can, L"/foo/bar" ) )
+ wcstring path = L"//foo//////bar/";
+ wcstring canon = path;
+ path_make_canonical(canon);
+ if( canon != L"/foo/bar" ) )
{
err( L"Bug in canonical PATH code" );
- }
-
- halloc_free( context );
-
+ }
}