wxWidgets/tests
Vadim Zeitlin 686d0cc0a6 Don't report spurious errors from wxSocket in "no wait" mode.
In wxSOCKET_NOWAIT mode wxSOCKET_WOULDBLOCK is not a real error as it's
expected and should be just discarded. Failing to do this could result in the
following scenario:

1. Try to read a big buffer with wxSOCKET_NOWAIT (setting wxSocket error to
   wxSOCKET_WOULDBLOCK).
2. Process small part of it.
3. Read more data from wxSocket -- which now goes to the data containing
   already cached data without going to the socket itself and this without
   resetting the error.
4. Check wxSocket::Error() which turns out to be (still) true.

And this was exactly what happened in mysteriously failing unit test case
reading wxImage contents from a socket: the failure was difficult to reproduce
because it depended on how much data exactly did we read from the socket in
one go.

Fix this by resetting the error properly and reenable the unit test which was
previously disabled for the build bot, it should pass now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-08-21 23:33:40 +00:00
..
any Compilation fix for wxAnyTestCase in ANSI-only build. 2010-07-12 22:50:47 +00:00
archive Corrected formatting of archiver command in the tests. 2010-06-24 10:33:36 +00:00
arrays Provide implementation for wxArrayString::resize(). 2009-09-16 23:18:48 +00:00
base64 Never overflow the output buffer in wxBase64Decode(). 2009-08-23 22:25:12 +00:00
benchmarks Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
cmdline Fix bug with parsing concatenated switches in wxCmdLineParser. 2009-09-07 23:00:05 +00:00
config Move wxRegConfig tests from console sample to a new wxRegConfigTestCase class. 2010-06-02 14:12:07 +00:00
controls Really set svn:eol-style property. 2010-07-17 14:55:45 +00:00
datetime Format strings fixes in test suite. 2010-06-24 10:34:23 +00:00
events paint events cannot be constructed outside a native redraw in OSX 2010-06-22 13:48:17 +00:00
exec suppress output from the test commands; use CPPUNIT_ASSERT_EQUAL() whenever possible 2009-04-13 17:33:33 +00:00
file better DirTestCase::DirExists test; 2010-06-21 19:47:14 +00:00
filekind Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
filename small warning+PCH fixes 2010-06-21 21:46:29 +00:00
filesys Fix UTF-8 string storage in constant: use unsigned char. 2010-03-28 17:52:19 +00:00
font Use "monospace" face name for all Unix systems, hopefully it should work. 2010-04-18 22:15:53 +00:00
fontmap Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
formatconverter Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
fswatcher Temporarily disable wxFileSystemWatcher unit test under OS X. 2010-03-22 16:08:44 +00:00
geometry compilation fixes for VC6 2008-01-13 01:13:03 +00:00
graphics Add wxBitmap unit test. 2010-03-29 09:59:05 +00:00
hashes Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
html added a test to check if wxHtmlWindow::SelectionToText() inserts \n characters correctly 2008-10-15 15:55:25 +00:00
image Don't report spurious errors from wxSocket in "no wait" mode. 2010-08-21 23:33:40 +00:00
interactive Really fix interactive output test compilation in ANSI build. 2010-07-13 14:13:12 +00:00
intl Remove wxLOCALE_CONV_ENCODING flag. 2010-04-16 11:29:22 +00:00
lists Fix return value of wxList::insert() in non-STL builds. 2010-04-12 00:36:36 +00:00
log Include wx/filefn.h to fix PCH-less compilation. 2009-08-18 11:44:31 +00:00
longlong Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
mbconv Remove wxUSE_WCHAR_T checks. 2010-04-16 10:43:18 +00:00
misc using proper dylib for darwin 2010-06-20 15:24:01 +00:00
net Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
regex Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
scopeguard Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
sizers Fix another bad format string in the testsuite. 2010-06-24 11:25:54 +00:00
streams Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
strings Don't run printf("%n") tests when _FORTIFY_SOURCE >= 2. 2010-07-18 11:52:58 +00:00
textfile Globally replace _T() with wxT(). 2009-07-23 20:30:22 +00:00
thread make POSIX and Windows implementation of wxThread::Run() coherently assert when trying to Run() a thread twice; add a test for it. 2010-07-25 13:55:36 +00:00
toplevel Initial ShowWithoutActivating implementations for Mac and Windows, and attempt to improve IsActive behavior on Mac. Also adding ShowWithoutActivating() and Show/Hide tests, but until the mainloop issues are resolved, not adding them to tests.bkl. 2009-10-30 05:04:47 +00:00
uris disable FTPTestCase by default. 2010-06-02 10:49:44 +00:00
vectors Add wxVectorSort function for sorting wxVector<T> containers. Closes #11889 2010-04-07 20:32:25 +00:00
weakref Fix using weak references to incomplete classes. 2010-04-15 22:47:37 +00:00
window don't take the min size into account when setting the window size explicitly in wxGTK, just as wxMSW doesn't do it; mention this in the docs and added a unit test to enforce this 2008-05-25 03:08:31 +00:00
xlocale use "ul" suffix instead of cast to unsigned long; this is not only shorter but also avoids gcc warning about working correctly only in C90 2009-04-17 13:06:27 +00:00
xml Fix attributes escaping when writing XML. 2010-08-04 14:57:30 +00:00
dummy.cpp Empty line at the end. 2004-11-22 15:12:29 +00:00
horse.ani add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.bmp add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.cur add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.gif add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.ico add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.jpg add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.pcx add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.png add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.pnm add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.tga add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.tif add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
horse.xpm add wxImage test units to test loading from both seekable and non-seekable streams 2009-06-01 11:46:36 +00:00
makefile.bcc move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
makefile.gcc move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
Makefile.in move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
makefile.vc move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
makefile.wat move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
runtests.bat adds proper detection of tests success/failure; clear that "error level" != "return code" 2009-03-23 14:57:10 +00:00
test_printfbench.dsp link with wininet.lib under Windows to avoid linking errors in wxUSE_URL_NATIVE==1 build (#10338) 2009-01-15 13:33:51 +00:00
test_test_gui.dsp Implement wxMask copy ctor for wxGTK. 2010-03-28 23:20:49 +00:00
test_test.dsp move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
test_vc7_printfbench.vcproj update bakefile to 0.2.6 2009-04-24 10:36:24 +00:00
test_vc7_test_gui.vcproj Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
test_vc7_test.vcproj move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
test_vc8_printfbench.vcproj update bakefile to 0.2.6 2009-04-24 10:36:24 +00:00
test_vc8_test_gui.vcproj Regenerated makefiles after removing USE_GDIPLUS. 2010-04-09 14:14:26 +00:00
test_vc8_test.vcproj move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
test_vc9_printfbench.vcproj update bakefile to 0.2.6 2009-04-24 10:36:24 +00:00
test_vc9_test_gui.vcproj remove some tests from the console sample: 2010-06-06 14:21:27 +00:00
test_vc9_test.vcproj move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
test.bkl move console sample's interactive tests to two different CppUnit testsuites: InteractiveInputTestCase which requires user input and InteractiveOutputTestCase which outputs stuff to be checked from the user. 2010-06-21 21:03:47 +00:00
test.cpp Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
testdata.fc moved Unicode tests to testsuite (patch 943945) 2004-04-30 20:26:14 +00:00
testfile.h Globally use "wxWindows licence" consistently. 2010-07-13 13:29:13 +00:00
testprec.h revert previous revision about localization of decimal points in GetHumanReadableSize() test strings: using CLocaleSetter is a better solution. 2010-06-06 18:52:28 +00:00