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:
@@ -116,8 +116,10 @@ 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 );
|
||||||
CPPUNIT_TEST( C );
|
CPPUNIT_TEST( C );
|
||||||
@@ -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 '.'
|
||||||
|
Reference in New Issue
Block a user