From 1cfd8e76bf4635d93f19aa0d177ec56dd86abb7d Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 12 Nov 2002 22:47:19 +0000 Subject: minor fix --- src/tests/StringUtiltest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/StringUtiltest.cc b/src/tests/StringUtiltest.cc index 09b73c7..ecad2df 100644 --- a/src/tests/StringUtiltest.cc +++ b/src/tests/StringUtiltest.cc @@ -48,10 +48,10 @@ void testStringtok() { } void testExpandFilename() { - auto_ptr filename(StringUtil::expandFilename("~/filename/~filename2/file3~/file4")); + string filename(StringUtil::expandFilename("~/filename/~filename2/file3~/file4")); cerr<<"test "; string test = string(getenv("HOME"))+"/filename/~filename2/file3~/file4"; - if (strcmp(test.c_str(), filename.get())==0) + if (test == filename) cerr<<"ok."; else cerr<<"faild"; -- cgit v0.11.2