diff options
author | fluxgen <fluxgen> | 2002-11-12 22:47:19 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-11-12 22:47:19 (GMT) |
commit | 1cfd8e76bf4635d93f19aa0d177ec56dd86abb7d (patch) | |
tree | 336669a7f0890dfedb24daf1d634e779ae5db667 | |
parent | d53d9eaa318eb0b498feb3a3fe39cbfa64fe0797 (diff) | |
download | fluxbox-1cfd8e76bf4635d93f19aa0d177ec56dd86abb7d.zip fluxbox-1cfd8e76bf4635d93f19aa0d177ec56dd86abb7d.tar.bz2 |
minor fix
-rw-r--r-- | src/tests/StringUtiltest.cc | 4 |
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 | ||
50 | void testExpandFilename() { | 50 | void 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"; |