static EventGenerator& Get() { if (!ms_instance) ms_instance = new EventGenerator(GetWatchDir()); return *ms_instance; }
static void RemoveWatchDir() { wxFileName dir = GetWatchDir(); CPPUNIT_ASSERT(dir.DirExists()); // just to be really sure we know what we remove CPPUNIT_ASSERT_EQUAL( "fswatcher_test", dir.GetDirs().Last() ); CPPUNIT_ASSERT( dir.Rmdir(wxPATH_RMDIR_RECURSIVE) ); }
static void RemoveWatchDir() { wxFileName dir = GetWatchDir(); CPPUNIT_ASSERT(dir.DirExists()); // just to be really sure we know what we remove CPPUNIT_ASSERT_EQUAL( "fswatcher_test", dir.GetDirs().Last() ); // FIXME-VC6: using non-static Rmdir() results in ICE CPPUNIT_ASSERT( wxFileName::Rmdir(dir.GetFullPath(), wxPATH_RMDIR_RECURSIVE) ); }