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
This commit is contained in:
Francesco Montorsi
2009-03-23 16:25:44 +00:00
parent ca5016d4dd
commit 16f7158098

View File

@@ -116,7 +116,9 @@ wxUnsafeSnprintf(T *buf, size_t len, const wxChar *fmt, ...)
class VsnprintfTestCase : public CppUnit::TestCase class VsnprintfTestCase : public CppUnit::TestCase
{ {
public: public:
VsnprintfTestCase(); VsnprintfTestCase() {}
virtual void setUp();
private: private:
CPPUNIT_TEST_SUITE( VsnprintfTestCase ); CPPUNIT_TEST_SUITE( VsnprintfTestCase );
@@ -175,8 +177,6 @@ private:
size_t max, const wxChar *format, ...); size_t max, const wxChar *format, ...);
void Miscellaneous(); void Miscellaneous();
virtual void setUp();
DECLARE_NO_COPY_CLASS(VsnprintfTestCase) DECLARE_NO_COPY_CLASS(VsnprintfTestCase)
}; };
@@ -186,7 +186,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION( VsnprintfTestCase );
// also include in it's own registry so that these tests can be run alone // also include in it's own registry so that these tests can be run alone
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( VsnprintfTestCase, "VsnprintfTestCase" ); CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( VsnprintfTestCase, "VsnprintfTestCase" );
VsnprintfTestCase::VsnprintfTestCase() void VsnprintfTestCase::setUp()
{ {
// this call is required to avoid check failures when running on machines // this call is required to avoid check failures when running on machines
// with a locale where the decimal point is not '.' // with a locale where the decimal point is not '.'