From 16f7158098c4dac76529b4772aaa600617936537 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Mon, 23 Mar 2009 16:25:44 +0000 Subject: [PATCH 1/1] 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 --- tests/strings/vsnprintf.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/strings/vsnprintf.cpp b/tests/strings/vsnprintf.cpp index 1aaa61a440..5f9a60796c 100644 --- a/tests/strings/vsnprintf.cpp +++ b/tests/strings/vsnprintf.cpp @@ -116,8 +116,10 @@ wxUnsafeSnprintf(T *buf, size_t len, const wxChar *fmt, ...) class VsnprintfTestCase : public CppUnit::TestCase { public: - VsnprintfTestCase(); - + VsnprintfTestCase() {} + + virtual void setUp(); + private: CPPUNIT_TEST_SUITE( VsnprintfTestCase ); CPPUNIT_TEST( C ); @@ -175,8 +177,6 @@ private: size_t max, const wxChar *format, ...); void Miscellaneous(); - virtual void setUp(); - 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 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( VsnprintfTestCase, "VsnprintfTestCase" ); -VsnprintfTestCase::VsnprintfTestCase() +void VsnprintfTestCase::setUp() { // this call is required to avoid check failures when running on machines // with a locale where the decimal point is not '.' -- 2.47.2