- CPPUNIT_ASSERT( wxGetRealFile( _T(".") ) == _T("") );
- CPPUNIT_ASSERT( wxGetRealFile( _T(".wav") ) == _T("") );
- CPPUNIT_ASSERT( wxGetRealFile( _T("good.wav") ) == _T("good") );
- CPPUNIT_ASSERT( wxGetRealFile( _T("good.wav.wav") ) == _T("good.wav") );
-}
\ No newline at end of file
+ CPPUNIT_ASSERT( wxTestStripExtension( _T(".") ) == _T("") );
+ CPPUNIT_ASSERT( wxTestStripExtension( _T(".wav") ) == _T("") );
+ CPPUNIT_ASSERT( wxTestStripExtension( _T("good.wav") ) == _T("good") );
+ CPPUNIT_ASSERT( wxTestStripExtension( _T("good.wav.wav") ) == _T("good.wav") );
+}
+
+#ifdef __WINDOWS__
+
+void FileNameTestCase::TestShortLongPath()
+{
+ wxFileName fn(_T("C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe"));
+
+ // incredibly enough, GetLongPath() used to return different results during
+ // the first and subsequent runs, test for this
+ CPPUNIT_ASSERT_EQUAL( fn.GetLongPath(), fn.GetLongPath() );
+ CPPUNIT_ASSERT_EQUAL( fn.GetShortPath(), fn.GetShortPath() );
+}
+
+#endif // __WINDOWS__