X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6307da56b8b2da3fc9774eeb9bad85883584e907..1c25d245864bfafaaac5f5e4b2f2c680f5a3ee99:/samples/console/console.cpp?ds=sidebyside diff --git a/samples/console/console.cpp b/samples/console/console.cpp index f312f1c51d..c1e61a1bda 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -91,7 +91,7 @@ #undef TEST_ALL static const bool TEST_ALL = TRUE; #else - #define TEST_FILENAME + #define TEST_MIME static const bool TEST_ALL = FALSE; #endif @@ -308,7 +308,7 @@ static void TestDirEnum() puts("*** Testing wxDir::GetFirst/GetNext ***"); wxString cwd = wxGetCwd(); - if ( wxDir::Exists(cwd) ) + if ( !wxDir::Exists(cwd) ) { printf("ERROR: current directory '%s' doesn't exist?\n", cwd.c_str()); return; @@ -1740,6 +1740,7 @@ static void TestMimeFilename() _T("readme.txt"), _T("document.pdf"), _T("image.gif"), + _T("picture.jpeg"), }; for ( size_t n = 0; n < WXSIZEOF(filenames); n++ ) @@ -5084,18 +5085,18 @@ public: virtual ExitCode Entry() { - wxPrintf(_T("%s: Thread %d starting to wait for semaphore...\n"), - wxDateTime::Now().FormatTime().c_str(), m_i); + wxPrintf(_T("%s: Thread #%d (%ld) starting to wait for semaphore...\n"), + wxDateTime::Now().FormatTime().c_str(), m_i, (long)GetId()); m_sem->Wait(); - wxPrintf(_T("%s: Thread %d acquired the semaphore.\n"), - wxDateTime::Now().FormatTime().c_str(), m_i); + wxPrintf(_T("%s: Thread #%d (%ld) acquired the semaphore.\n"), + wxDateTime::Now().FormatTime().c_str(), m_i, (long)GetId()); Sleep(1000); - wxPrintf(_T("%s: Thread %d releasing the semaphore.\n"), - wxDateTime::Now().FormatTime().c_str(), m_i); + wxPrintf(_T("%s: Thread #%d (%ld) releasing the semaphore.\n"), + wxDateTime::Now().FormatTime().c_str(), m_i, (long)GetId()); m_sem->Post(); @@ -5982,10 +5983,9 @@ int main(int argc, char **argv) { TestMimeEnum(); TestMimeOverride(); - TestMimeFilename(); + TestMimeAssociate(); } - - TestMimeAssociate(); + TestMimeFilename(); #endif // TEST_MIME #ifdef TEST_INFO_FUNCTIONS