diff --git a/tests/file/filefn.cpp b/tests/file/filefn.cpp index 9655d5a299..7669d03ad1 100644 --- a/tests/file/filefn.cpp +++ b/tests/file/filefn.cpp @@ -512,7 +512,7 @@ void FileFunctionsTestCase::PathOnly() { wxString name = wxT("horse.bmp"); // Get absolute path to horse.bmp - wxFileName filename(filename); + wxFileName filename(name); CPPUNIT_ASSERT( filename.MakeAbsolute() ); wxString pathOnly = wxPathOnly(filename.GetFullPath());