From 9cb47ea27661724ef84d822eef62d8b64d23388e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 9 May 2002 15:59:07 +0000 Subject: [PATCH] added build options check git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/console/console.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 8d363fc5f9..03a237b9b1 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -783,6 +783,14 @@ static void DumpFileName(const wxFileName& fn) fn.GetPath(wxPATH_GET_SEPARATOR).c_str()); wxPrintf(_T("with both: \t'%s'\n"), fn.GetPath(wxPATH_GET_SEPARATOR | wxPATH_GET_VOLUME).c_str()); + + wxPuts(_T("The directories in the path are:")); + wxArrayString dirs = fn.GetDirs(); + size_t count = dirs.GetCount(); + for ( size_t n = 0; n < count; n++ ) + { + wxPrintf(_T("\t%u: %s\n"), n, dirs[n].c_str()); + } } static struct FileNameInfo @@ -5625,6 +5633,8 @@ static void TestStringMatch() int main(int argc, char **argv) { + wxApp::CheckBuildOptions(wxBuildOptions()); + wxInitializer initializer; if ( !initializer ) { @@ -5837,10 +5847,11 @@ int main(int argc, char **argv) #endif // TEST_FILE #ifdef TEST_FILENAME - if ( 0 ) + if ( 1 ) { wxFileName fn; fn.Assign("c:\\foo", "bar.baz"); + fn.Assign("/u/os9-port/Viewer/tvision/WEI2HZ-3B3-14_05-04-00MSC1.asc"); DumpFileName(fn); } @@ -5859,6 +5870,7 @@ int main(int argc, char **argv) #ifdef TEST_FILETIME TestFileGetTimes(); + if ( 0 ) TestFileSetTimes(); #endif // TEST_FILETIME -- 2.45.2