Thread: [Cppcms-users] error checkout, make, and make test cppcms framework
Brought to you by:
artyom-beilis
From: Aris S. <ari...@gm...> - 2010-12-13 01:21:05
|
Hi, After I got my new vps, I start re-checkout all sources from cppcms repository. But I got the followings: 1. error in checkout. Error ' https://cppcms.svn.sourceforge.net/svnroot/cppcms/templates_compiler/trunk/share' at revision 1571 doesn't exist. Completed At revision: 1571 2. warning in "make". I get some warning in ".../aio/src/endpoint.cpp", which told me that in some member functions, a control reaches end of non-void function. 3. failed in "make test". 62 - test_locale_std_formatting (Failed) What is the consequences of failed test above? which modules are that can't be used? thanks -aris |
From: Artyom <art...@ya...> - 2010-12-13 08:16:06
|
> > 1. error in >checkout. Error 'https://cppcms.svn.sourceforge.net/svnroot/cppcms/templates_compiler/trunk/share' at > > revision 1571 doesn't exist. Completed At revision: 1571 You don't need templates_compiler is it dead project that was removed from svn. It was used for CppCMS 0.0.x before its first beta was even released. It was removed from svn. > 2. warning in "make". I get some warning in ".../aio/src/endpoint.cpp", >which > >told me that in some member functions, a control reaches end of non-void >function. This is fine - it is compiler's false alarm. The "end of non-void" is done via function that always throws. > 3. failed in "make test". 62 - test_locale_std_formatting (Failed) Can you please give me the content of the Testing/Temporary/LastTest.log In your build directory, Also I need: - the version of the compiler you use, - Linux distribution (or other OS name) - output of locale -a - output of locale - version of CppCMS you use (trunk or the 0.99.4) > What is the > consequences of failed test above? which modules are that can't be used? Most likely it is the bug in the test itself as it is quite hard to handle all corner cases on every OS and installation and installed locales. But in general the "std" localization backend may be less usable (but it really depends on what exactly failed) Not something to worry about. Artyom |
From: Aris S. <ari...@gm...> - 2010-12-13 13:33:43
|
On Mon, Dec 13, 2010 at 3:15 PM, Artyom <art...@ya...> wrote: > Can you please give me the content of the > > Testing/Temporary/LastTest.log > > In your build directory, > > Also I need: > > - the version of the compiler you use, I use gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) > - Linux distribution (or other OS name) from command "cat /proc/version", here is the output: Linux version 2.6.18-164.15.1.el5.028stab068.9PAE (root@rhel5-build-x32) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Tue Mar 30 19:26:53 MSD 2010 and from command "cat /etc/*-release", here is the output: CentOS release 5 (Final) > - output of locale -a I attach it > - output of locale I attach it > - version of CppCMS you use (trunk or the 0.99.4) from the trunk |
From: Artyom <art...@ya...> - 2010-12-13 14:29:18
|
Ok I see thanks. Can you please do following: In file booster/lib/locale/test/test_std_formatting.cpp add between lines 339 and 340 ss << boost::locale::as::number << 12345.45; TEST(ss.str() == "12 345,45"); The command: std::cerr << "[" << ss.str() << "]" << std::endl. So it would look like ss << boost::locale::as::number << 12345.45; std::cerr << "[" << ss.str() << "]" << std::endl. TEST(ss.str() == "12 345,45"); In build directory run make and then: ./test_std_formatting >report.txt And send me this file (report.txt)? Thanks. It is important to have entire file and not copy-paste from screen as I need to check if it generates invalid UTF-8 encoding or not. Artyom |
From: Aris S. <ari...@gm...> - 2010-12-13 22:04:55
Attachments:
report.txt
|
On Mon, Dec 13, 2010 at 9:29 PM, Artyom <art...@ya...> wrote: > Ok I see thanks. > > Can you please do following: > > > In file booster/lib/locale/test/test_std_formatting.cpp > add between lines 339 and 340 > > ss << boost::locale::as::number << 12345.45; > TEST(ss.str() == "12 345,45"); > > The command: > > std::cerr << "[" << ss.str() << "]" << std::endl. > > So it would look like > > ss << boost::locale::as::number << 12345.45; > std::cerr << "[" << ss.str() << "]" << std::endl. > TEST(ss.str() == "12 345,45"); > > In build directory run make and then: > > ./test_std_formatting >report.txt did you mean ./test_locale_std_formatting >report.txt? > > And send me this file (report.txt)? I attach it and there were some outputs. here: [12345,45] Error in line:341 ss.str() == "12 345,45" |
From: Artyom <art...@ya...> - 2010-12-14 07:41:20
|
Thanks, Fixed in both Boost.Locale and CppCMS, take latest trunk. Note: this was indeed bug in test rather then the bug in implementation itself. Artyom ----- Original Message ---- > From: Aris Setyawan <ari...@gm...> > To: cpp...@li... > Sent: Tue, December 14, 2010 12:04:49 AM > Subject: Re: [Cppcms-users] error checkout, make, and make test cppcms >framework > > On Mon, Dec 13, 2010 at 9:29 PM, Artyom <art...@ya...> wrote: > > Ok I see thanks. > > > > Can you please do following: > > > > > > In file booster/lib/locale/test/test_std_formatting.cpp > > add between lines 339 and 340 > > > > ss << boost::locale::as::number << 12345.45; > > TEST(ss.str() == "12 345,45"); > > > > The command: > > > > std::cerr << "[" << ss.str() << "]" << std::endl. > > > > So it would look like > > > > ss << boost::locale::as::number << 12345.45; > > std::cerr << "[" << ss.str() << "]" << std::endl. > > TEST(ss.str() == "12 345,45"); > > > > In build directory run make and then: > > > > ./test_std_formatting >report.txt > did you mean ./test_locale_std_formatting >report.txt? > > > > > And send me this file (report.txt)? > I attach it and there were some outputs. here: > [12345,45] > Error in line:341 ss.str() == "12 345,45" > |