summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-12 22:47:19 (GMT)
committerfluxgen <fluxgen>2002-11-12 22:47:19 (GMT)
commit1cfd8e76bf4635d93f19aa0d177ec56dd86abb7d (patch)
tree336669a7f0890dfedb24daf1d634e779ae5db667 /src/tests
parentd53d9eaa318eb0b498feb3a3fe39cbfa64fe0797 (diff)
downloadfluxbox_lack-1cfd8e76bf4635d93f19aa0d177ec56dd86abb7d.zip
fluxbox_lack-1cfd8e76bf4635d93f19aa0d177ec56dd86abb7d.tar.bz2
minor fix
Diffstat (limited to 'src/tests')
-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";