+ // This should succeed, as the symlink still exists and
+ // the default wxFILE_EXISTS_ANY implies wxFILE_EXISTS_NO_FOLLOW
+ CPPUNIT_ASSERT(wxFileName(tempdir, "linktofile").Exists());
+ // So should this one, as wxFILE_EXISTS_SYMLINK does too
+ CPPUNIT_ASSERT(wxFileName(tempdir, "linktofile").
+ Exists(wxFILE_EXISTS_SYMLINK));
+ // but not this one, as the now broken symlink is followed
+ CPPUNIT_ASSERT(!wxFileName(tempdir, "linktofile").
+ Exists(wxFILE_EXISTS_REGULAR));