summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/StringUtiltest.cc4
1 files 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() {
48} 48}
49 49
50void testExpandFilename() { 50void testExpandFilename() {
51 auto_ptr<char> filename(StringUtil::expandFilename("~/filename/~filename2/file3~/file4")); 51 string filename(StringUtil::expandFilename("~/filename/~filename2/file3~/file4"));
52 cerr<<"test "; 52 cerr<<"test ";
53 string test = string(getenv("HOME"))+"/filename/~filename2/file3~/file4"; 53 string test = string(getenv("HOME"))+"/filename/~filename2/file3~/file4";
54 if (strcmp(test.c_str(), filename.get())==0) 54 if (test == filename)
55 cerr<<"ok."; 55 cerr<<"ok.";
56 else 56 else
57 cerr<<"faild"; 57 cerr<<"faild";