added test for wxFileConfig::DeleteEntry
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,7 +95,7 @@
|
|||||||
#undef TEST_ALL
|
#undef TEST_ALL
|
||||||
static const bool TEST_ALL = true;
|
static const bool TEST_ALL = true;
|
||||||
#else
|
#else
|
||||||
#define TEST_SOCKETS
|
#define TEST_FILECONF
|
||||||
|
|
||||||
static const bool TEST_ALL = false;
|
static const bool TEST_ALL = false;
|
||||||
#endif
|
#endif
|
||||||
@@ -798,6 +798,12 @@ static void TestFileConfRead()
|
|||||||
|
|
||||||
cont = fileconf.GetNextEntry(name, dummy);
|
cont = fileconf.GetNextEntry(name, dummy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const wxChar *testEntry = _T("TestEntry");
|
||||||
|
wxPrintf(_T("\nTesting deletion of newly created \"Test\" entry: "));
|
||||||
|
fileconf.Write(testEntry, _T("A value"));
|
||||||
|
fileconf.DeleteEntry(testEntry);
|
||||||
|
wxPrintf(fileconf.HasEntry(testEntry) ? _T("ERROR\n") : _T("ok\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // TEST_FILECONF
|
#endif // TEST_FILECONF
|
||||||
|
Reference in New Issue
Block a user