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:
parent
3362e80e71
commit
7e0777dabb
@ -95,7 +95,7 @@
|
||||
#undef TEST_ALL
|
||||
static const bool TEST_ALL = true;
|
||||
#else
|
||||
#define TEST_SOCKETS
|
||||
#define TEST_FILECONF
|
||||
|
||||
static const bool TEST_ALL = false;
|
||||
#endif
|
||||
@ -798,6 +798,12 @@ static void TestFileConfRead()
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user