Commit Graph

734 Commits

Author SHA1 Message Date
Vadim Zeitlin
b9d2203419 only Linux/glibc seem to use periods as date separator in French locale
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-30 21:14:09 +00:00
Vadim Zeitlin
89a7e1ff98 Added wxLOCALE_DATE/TIME_FMT support to wxLocale::GetInfo().
- Implement for POSIX and Win32, TODO for OS X
- Use this instead of ad hoc code in wxDateTime::ParseFormat()
- Remove HAVE_STRPTIME, we don't need nor use strptime() any more


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-29 17:15:43 +00:00
Václav Slavík
de4983f323 split wxCharTypeBuffer<T> into wxScopedCharTypeBuffer<T> and wxCharTypeBuffer<T> -- the former is for transient data with validity limited to parent's lifetime, the latter is for permanent storage of string data (bug #9638)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-27 15:33:55 +00:00
Vadim Zeitlin
07c4e84f7b always declare TestStrip(), it is now available even without 2.8 compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 23:00:14 +00:00
Vadim Zeitlin
181dd701fa implement deprecated wxStripExtension() in terms of new wxFileName::StripExtension() (closes #10634)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 15:55:01 +00:00
Vadim Zeitlin
62714742f3 no changes, just some cleanup (use compile-time asserts instead of run-time ones; use "FAIL" instead of "F")
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 15:35:30 +00:00
Vadim Zeitlin
875f82b1b6 switch off logging sooner (closes #10646)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 15:31:54 +00:00
Vadim Zeitlin
2057acc2a7 build bot systems don't manage to generate enough ticks in 2 seconds to pass this test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 14:58:22 +00:00
Vadim Zeitlin
92f8206fee remove unused variable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 13:46:22 +00:00
Vadim Zeitlin
29e0c68ef5 produce a better looking report with --time option (closes #10643)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 16:28:20 +00:00
Vadim Zeitlin
955e1ce861 ensure the number of values we expect to record in RecordingDefaultsTest() is always correct (fixes test failure under VC6)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:43:31 +00:00
Vadim Zeitlin
5c8640d093 correct order of parameters in CPPUNIT_ASSERT_EQUAL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59849 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:40:22 +00:00
Vadim Zeitlin
174649c955 fix tests for the release builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:32:53 +00:00
Vadim Zeitlin
9912799caf don't log std::exceptions ourselves, let cppunit do it as it outputs more details
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 13:32:19 +00:00
Vadim Zeitlin
2e6c4a5702 give more detailed message when the test fails in TestTimeFormat()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 12:59:19 +00:00
Francesco Montorsi
14a83cbf36 fix the FontTestCase::GetSet unit so that it passes under wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 12:49:04 +00:00
Vadim Zeitlin
b33e98f0bd trap CRT assertions and report assertions which happen inside CppUnit tests in a better way
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 10:42:11 +00:00
Francesco Montorsi
8057186b81 PCH less build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-25 00:25:37 +00:00
Francesco Montorsi
e3527f7bc5 make sure that wxSystemSettings::GetFont/GetColour return values are always valid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 23:13:02 +00:00
Vadim Zeitlin
e538985edc added GetEnglish{Month,WeekDay}Name()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 16:51:10 +00:00
Vadim Zeitlin
dc310ea07f discard the time zone part of strings being parsed (generalizes the "CEST"-ignoring hack of r59682)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 12:19:21 +00:00
Vadim Zeitlin
66f22f4ae5 fix parsing methods for non-ASCII strings (e.g. dates in non-"C" locales) (see #9560)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-24 00:11:42 +00:00
Vadim Zeitlin
34d4d2864c enforce "C" locale for tests which can't work in any other (because test data is in English)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 23:29:10 +00:00
Vadim Zeitlin
3aa3163f66 give better error messages when tests fail
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 23:22:37 +00:00
Francesco Montorsi
3162be2bd9 small changes to make the test run fine on wxMSW, too;
do not use stdout as variable name as VC9 doesn't like it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 16:49:20 +00:00
Francesco Montorsi
16f7158098 put wxSetLocale() call in setUp() as VC6 still fails because of wrong locale in VsnprintfTestCase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 16:25:44 +00:00
Francesco Montorsi
ca5016d4dd make sure that wxProcess always have a valid PID set; add test unit for wxExecute,wxShell,wxProcess based on the code in the console sample; add some more infos/notes in wxProcess docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 16:23:44 +00:00
Francesco Montorsi
7749be1236 adds proper detection of tests success/failure; clear that "error level" != "return code"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 14:57:10 +00:00
Vadim Zeitlin
ffdb0ee5ab initialize NUM_COLS correctly in columns order test (closes #10630)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 12:18:51 +00:00
Francesco Montorsi
12e91a550c fix typo; use C locale for VsnprintfTestCase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 12:17:39 +00:00
Francesco Montorsi
2026b433b9 this one should really work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 11:01:33 +00:00
Francesco Montorsi
78f2eafcb6 fix the build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 10:58:32 +00:00
Francesco Montorsi
f70cea2bdc blind carbon build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 10:04:56 +00:00
Francesco Montorsi
8405285c69 try to remove /B from EXIT commands; prints a "separator" between test.exe and test_gui.exe output
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-23 10:01:13 +00:00
Francesco Montorsi
a17023d376 fix building tests in release mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 23:02:55 +00:00
Vadim Zeitlin
5c5e59f8c3 correct syntax (patterns need to be escaped)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 22:08:19 +00:00
Vadim Zeitlin
031b101f09 moved the check for correct implementation of wxEvent::Clone() to a unit test from wx startup code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 21:31:34 +00:00
Vadim Zeitlin
ddaf7a11c3 set the PATH to contain ../lib/*_dll directories before running the tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 21:07:51 +00:00
Vadim Zeitlin
cc14bd0058 added wxStaticCast() unit test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 21:04:28 +00:00
Vadim Zeitlin
6582f59207 compilation fix for wxUSE_STD_STRING==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-22 16:10:09 +00:00
Vadim Zeitlin
657a8a3598 first round of debug/release merge: introduce wxDEBUG_LEVEL, for now defined as 1 if __WXDEBUG__ is defined, i.e. no real changes; don't use __WXDEBUG__ in the headers to keep debug and release builds ABI-compatible; add functions to customize or disable asserts handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 23:36:37 +00:00
Francesco Montorsi
92de7654e9 use /b option with the EXIT command
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 13:49:20 +00:00
Francesco Montorsi
1789c1c602 fix for PCH-less builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 12:34:18 +00:00
Francesco Montorsi
1dd8319ab9 revert 59680; implement proper fix for wxMSW test failure detection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 12:28:52 +00:00
Francesco Montorsi
a6121fc4e0 fixes for Italian locale: ignore a final 'CET' string and don't test '%p' for it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 00:37:19 +00:00
Francesco Montorsi
d24a0a3a30 try to use 0/1 instead of the cstdlib' EXIT_SUCCESS/FAILURE constants to see if buildbot makes red the currently-green boxes relative to wxMSW test runs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 00:16:43 +00:00
Francesco Montorsi
6d423df049 allow to give the testcase name without the final 'TestCase' postfix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-21 00:06:32 +00:00
Francesco Montorsi
529e491ce0 add the ToCLong, ToCULong and ToCDouble functions, with docs and test units
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-20 14:50:06 +00:00
Francesco Montorsi
fdfc5e18e7 comment-out tests provoking a low-level assert from debug CRT libs in MSVC 2008 (2005 probably affected too)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-20 01:03:38 +00:00
Francesco Montorsi
8e18d24865 fix constant value for 32bit machines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-19 20:30:27 +00:00