Commit Graph

642 Commits

Author SHA1 Message Date
Vadim Zeitlin
7ee34f2be1 no changes, just use CPPUNIT_ASSERT_EQUAL instead of CPPUNIT_ASSERT
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 12:25:32 +00:00
Vadim Zeitlin
438febca6e don't sleep too long to avoid missing the timers; added a simple test for timer events processing in console apps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 22:04:42 +00:00
Vadim Zeitlin
506e9b7ed2 rebaked using bakefile 0.2.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 16:40:51 +00:00
Vadim Zeitlin
6c58cd78a5 use hex escapes instead of 8 bit characaters (#10105)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-23 13:08:02 +00:00
Vadim Zeitlin
3e356d4144 add a simple benchmark for wx and iconv converters benchmarking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 12:24:24 +00:00
Vadim Zeitlin
51725fc0c2 reverted the change of r56246 and keep the old behaviour of MB2WC/WC2MB; document it even more clearly and correct code using these functions incorrectly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 11:31:22 +00:00
Vadim Zeitlin
65669e3152 add very simple (but already exposing many problems) wxIPC benchmark
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:35:03 +00:00
Vadim Zeitlin
fa8825a01d allow specifying initialization and cleanup functions for benchmarks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:34:47 +00:00
Václav Slavík
c39058f631 added a test to check if wxHtmlWindow::SelectionToText() inserts \n characters correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 15:55:25 +00:00
Vadim Zeitlin
139ea30e15 added -1 (a.k.a. --single) command line option
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 13:34:02 +00:00
Vadim Zeitlin
b9f9065e28 fix the bug in insert(end(), value) and added unit test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-14 09:04:52 +00:00
Vadim Zeitlin
ebfa7ceaa4 make the default value of numeric parameter 0, not 1, to make testing for it more natural; also allow passing string parameter to the benchmarks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 22:25:51 +00:00
Vadim Zeitlin
7b9b06e323 create local event loop for the operations which need it; test reading with wxSOCKET_BLOCK flag
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 22:55:56 +00:00
Vadim Zeitlin
6b6b233ac0 wxUSE_STL compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 22:27:49 +00:00
Vadim Zeitlin
3afc646cae don't allocate a too big buffer on stack
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 20:57:19 +00:00
Vadim Zeitlin
62fb86a515 add simple (and disabled by default) wxSocket client test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 20:45:29 +00:00
Vadim Zeitlin
ea6319cb38 don't replace . and .. with the corresponding directoties names in GetLongPath() as this breaks the normalization of file names without wxPATH_NORM_DOTS flag (#9814)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 15:15:32 +00:00
Vadim Zeitlin
8a493b67ac fix off by one bug in the buffer size (fixes #10039)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 14:51:45 +00:00
Vadim Zeitlin
6221357baa add a unit test for reading non existent values (to check for #10030)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 12:52:43 +00:00
Vadim Zeitlin
a08711325b fix C strings comparison in LoadSave() test in STL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 21:12:51 +00:00
Vadim Zeitlin
e767076e80 just return false instead of crashing if the document contents can't be converted to the target encoding (#10064)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 16:13:53 +00:00
Vadim Zeitlin
4c493e0bc5 add a very simple test for Load/Save()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 15:37:50 +00:00
Vadim Zeitlin
252ead2e54 fix bug in the test in STL build (where std::vector uses operator=() and not copy ctor to copy objects around, at least with g++)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 09:33:13 +00:00
Vadim Zeitlin
7da8bfe30d add VC9 project files (closes #9960)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 16:42:00 +00:00
Vadim Zeitlin
8ece421c6c rebaked makefiles with 0.2.4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 15:44:49 +00:00
Vadim Zeitlin
c565abe1c5 fix After{First,Last}() to work for strings with non-ASCII characters in UTF-8 build and added unit tests for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-29 12:08:44 +00:00
Vadim Zeitlin
5fed01a943 fix VC9 compilation: FileNameInfo identifier conflicts with an enum name in the SDK it uses, so rename it to TestFileNameInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-27 09:20:10 +00:00
Vadim Zeitlin
b5f85206a9 fix ParseFormat("%d") to set the date it finds (#10002)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-26 15:27:08 +00:00
Vadim Zeitlin
c4dbb95303 fix parsing of IP literals in URIs, added test for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 15:27:10 +00:00
Vadim Zeitlin
c3a65218fb introduced more convenient and readable URI_ASSERT_XXX_EQUAL() macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-25 14:08:01 +00:00
Vadim Zeitlin
fbfd8b1ace compilation fix for PCH-less build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 17:33:41 +00:00
Vadim Zeitlin
841a25bbc3 added a simple test for wxGetDisplayXXX() functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-22 16:03:45 +00:00
Kevin Ollivier
7664a67f57 Rebake after bakefile changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-20 23:59:10 +00:00
Vadim Zeitlin
dc7f9c9cee add unit test for wxTextEntry methods of wxComboBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 10:18:30 +00:00
Vadim Zeitlin
99b9c0eac1 do enable PCH for the tests, wx/wx.h was not precompiled for them resulting in much slower compilation than expected
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 09:03:01 +00:00
Vadim Zeitlin
f0f6a32d4d extract wxTextEntry unit tests in a reusable base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 08:55:25 +00:00
Vadim Zeitlin
76a10a0dac fix crash under MSW due to constructing a static wxDDEClient instance (this arguably should work but currently doesn't because of use of (yet uninitialized) wxDDEClientObjects in wxDDEClient ctor)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-12 01:36:09 +00:00
Vadim Zeitlin
fe26031e26 added braces to suppress g++ 4.3 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 14:00:33 +00:00
Vadim Zeitlin
ff2201cc74 added swap() for the other arrays too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 13:51:41 +00:00
Vadim Zeitlin
9127686895 added wxArrayString::swap()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 13:35:32 +00:00
Kevin Ollivier
509f339a81 rebake
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-04 07:57:32 +00:00
Vadim Zeitlin
8b73c5318c chanegd wxTlsValue to be pointer-like instead of value-like which doesn't work for UDTs; use __thread keyword with mingw32 >= 4.3 too; use library-based thread-specific variables support in wxString cache now that it is fixed to work there; finally added a unit test for TLS stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-29 23:28:42 +00:00
Vadim Zeitlin
33ccf3d1ec make the length of string proportional to the parameter to study test time dependency on it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-29 13:56:03 +00:00
Vadim Zeitlin
8fad8b2e52 add the possibility to pass numeric parameters to benchmark functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-28 17:14:39 +00:00
Vadim Zeitlin
2976d6cbc0 unbuffer cout to work around bug in Debian version of cppunit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-27 20:37:44 +00:00
Vadim Zeitlin
3c06bd88f4 no changes, just a typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 16:43:45 +00:00
Václav Slavík
6bd4f2812d fixed writing to wxUniCharRef after its 'parent' iterator was destroyed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-26 13:02:38 +00:00
Václav Slavík
c21faa0a3e added wxString benchmark using 2.8's HTML parser
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-13 15:48:09 +00:00
Václav Slavík
4c25eaccc9 HAVE_BOOST_THREAD should be off by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-13 15:47:20 +00:00
Václav Slavík
0654c03aff added microbenchmark for wxCharBuffer performance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-11 19:31:23 +00:00
Vadim Zeitlin
817d057840 added test for Replace(whatever, "")
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-09 15:50:24 +00:00
Vadim Zeitlin
64a044d5a6 added wxTLS_TYPE() macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-08 02:59:32 +00:00
Vadim Zeitlin
c585ccef9c added Win32 TLS tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-08 01:13:30 +00:00
Vadim Zeitlin
49f11e8482 add TLS access benchmark
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-08 00:43:20 +00:00
Vadim Zeitlin
ac41e143de pass asciistr, not utf8str, to FromAscii
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-06 17:53:25 +00:00
Vadim Zeitlin
c517ecec15 show default values of the options in the usage message
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-06 14:22:13 +00:00
Vadim Zeitlin
604fba2d34 made wxDELETE[A]() template functions instead of macros; they now also check that their argument is fully declared (#9685)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 22:49:01 +00:00
Vadim Zeitlin
0c7db140c5 add wxString::Capitalize() and MakeCapitalized() for consistency with Upper/Lower() we already have
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-01 23:39:11 +00:00
Vadim Zeitlin
543cf9ba1a added another Replace() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-30 15:25:19 +00:00
Vadim Zeitlin
9729777e2a added some Replace() benchmarks (#9802)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-30 13:56:17 +00:00
Václav Slavík
2f539d953b added a test for passing wxCharBufer to wxprintf functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-29 13:32:35 +00:00
Vadim Zeitlin
dc2ae35583 added a simple benchmarking suite
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-26 23:07:05 +00:00
Vadim Zeitlin
5166d04e4f add unit test for wxTextCtrl::GetInsertionPoint()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-23 23:56:04 +00:00
Vadim Zeitlin
b2b0bee6d8 add unit test for wxTextCtrl::SetSelection()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-23 23:34:25 +00:00
Vadim Zeitlin
60235673ec fix a bug in the test which was corrupting 1 byte beyond wxImage buffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-23 23:23:23 +00:00
Vadim Zeitlin
35d5da677d get rid of base arrays in wxUSE_STL build, we don't need them there and deriving wxFooPtr from wxBaseArrayPtrVoid makes it iterators return void pointers instead of those of the correct type; added test case to check for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-22 01:01:56 +00:00
Vadim Zeitlin
2186321ff5 big wxURI cleanup; it now handles Unicode characters correctly (#3874)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 23:14:51 +00:00
Vadim Zeitlin
ece97e2882 remove the just added assertEquals(time_t, long) overload, it results in infinite recursion and crash if time_t is the same type as long
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 20:07:36 +00:00
Vadim Zeitlin
9f10e7c758 no changes, just removed an unnecessary semicolon at top level
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 15:36:39 +00:00
Vadim Zeitlin
28d4f49b78 already escaped backslash shouldn't escape the following quote in ConvertStringToArgs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 01:53:04 +00:00
Vadim Zeitlin
e3276230de fix bug with wxCSConv("ASCII")
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-19 01:45:38 +00:00
Vadim Zeitlin
5c3d5ef246 simplify the test, don't reuse the same macro for different things
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 23:08:24 +00:00
Vadim Zeitlin
1de532f57e get rid of special WX_ASSERT_FOO_EQUAL macros by defining CppUnit::assertEquals() overloads for wx types
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-18 23:07:23 +00:00
Vadim Zeitlin
42e8b52f09 make test failures easier to debug by using more informative failure messages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:24:21 +00:00
Vadim Zeitlin
ae43193571 don't run the tests which can't succeed in ANSI build; remove the tests for wxUSE_WCHAR_T, it's always 1 now; test MB2WC conversions in Unicode build too (it only tested WC2MB for some reason)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-17 23:01:17 +00:00
Vadim Zeitlin
bec76e1835 add GetLo/Hi() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 15:21:24 +00:00
Vadim Zeitlin
a4761b4c08 implement flag for Unix-like behaviour in wxCmdLineParser::ConverStringToArgs()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:49:25 +00:00
Vadim Zeitlin
fec42c21ef added wxConvISO8859_1 test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:48:47 +00:00
Vadim Zeitlin
339e08c704 use CPPUNIT_ASSERT_EQUAL(x,y) instead of CPPUNIT_ASSERT(x==y) to better see test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 18:00:49 +00:00
Vadim Zeitlin
fa0584f14d use CPPUNIT_ASSERT_EQUAL(x,y) instead of CPPUNIT_ASSERT(x==y) to better see test failures
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 17:38:03 +00:00
Vadim Zeitlin
02ab8d3a75 only initialize sockets if IPC implementation is socket-based
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 21:01:41 +00:00
Vadim Zeitlin
4c141c5a96 PCH-less build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 15:12:58 +00:00
Vadim Zeitlin
e7ce668e1d added a simple IPC unit test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 02:19:34 +00:00
Vadim Zeitlin
d7ad5a0289 define {first,second}_type in the struct declared by _WX_DECLARE_PAIR too for compatibility with std::pair, we can avoid #ifdefs in the code using the hash then (#9725)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 18:20:06 +00:00
Vadim Zeitlin
e6f688797c run tests several times with different socket flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-12 02:43:19 +00:00
Vadim Zeitlin
bf451723ca check that the stream raises no error other than EOF when it's supposed to be at EOF
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-12 02:30:06 +00:00
Vadim Zeitlin
c515e20be4 enable the rest of wxSocketStream tests now that they pass
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-12 02:29:42 +00:00
Vadim Zeitlin
e402863ff6 add some output stream tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 02:16:49 +00:00
Vadim Zeitlin
8bd966d3cd skip calls of TellI/TellO() if the stream is not seekable; more const-correctness
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 02:16:27 +00:00
Vadim Zeitlin
41cef82a0a use wxSocketBase::Initialize/Shutdown() instead of GSocket_Init/Cleanup()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 02:05:11 +00:00
Vadim Zeitlin
6cecf398fb MSW compilation fix after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-08 00:49:30 +00:00
Vadim Zeitlin
f9caf1af44 added (for now trivial) socket stream test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-08 00:19:54 +00:00
Vadim Zeitlin
1530fc0958 regenerate the makefiles with correct new test name (iostreams.cpp, iostream.cpp is already taken by strings test)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 18:02:23 +00:00
Vadim Zeitlin
02e22828eb added a unit test for input/output file streams and fixed the problem it exposed (#3335)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 17:34:50 +00:00
Stefan Csomor
4eba7d7d66 fixing file paths after renaming
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-12 17:54:47 +00:00
Vadim Zeitlin
425eee4164 correct some compatibility problems with the existing Unicode-mode code (#9513), more remains to be done (#9560)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-09 22:50:55 +00:00
Vadim Zeitlin
062dc5fc22 initialize wxStringBuffer with the original contents of wxString it was created from for better compatibility with the old, non-STL, build (this avoids problems such as ticket #4845); add wxString::tchar_buf() to help with the implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-06 21:19:23 +00:00
Vadim Zeitlin
3d68e52c8f compilation fixes for ANSI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-06 20:56:16 +00:00
Vadim Zeitlin
44c6d979a8 removed the test which never works: Lower/Upper() don't work with Unicode strings currently
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-06 20:55:39 +00:00
Vadim Zeitlin
c71396b42d suppress warning about casting int to a pointer of greater size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-02 20:45:50 +00:00