GNOME Bugzilla – Bug 707546
dttest failed during building
Last modified: 2013-09-26 19:58:16 UTC
I have all the dependencies satisfied but I'm unable to get past the dttest without getting these errors. Have a look at the error log % less src/test-suite.log ===================================== gnote 3.9.3: src/test-suite.log ===================================== # TOTAL: 8 # PASS: 7 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: dttest ============ test/dttest.cpp(72): test string_ends_with(date_string, "19:34") failed in function: 'int test_main(int, char**)' test/dttest.cpp(75): test string_ends_with(date_string, "7:34 pm") failed in function: 'int test_main(int, char**)' **** 2 errors detected
Can you provide your system details (most important is GTK+ version used). I think that test prints "PM" in uppercase for you, I'll modify the test so that both are fine.
I use Ubuntu 13.04 i386, with os fully updated. I checked that my libgtk-3-dev version is 3.6.4-0ubuntu8
Created attachment 254299 [details] [review] Patch to fix the issue Please try to apply this patch, hopefully it will resolve the issue.
Took a quick look at the patch. What about the first error message? test/dttest.cpp(72): test string_ends_with(date_string, "19:34") failed in function: 'int test_main(int, char**)'
(In reply to comment #4) > Took a quick look at the patch. What about the first error message? > > test/dttest.cpp(72): test string_ends_with(date_string, "19:34") failed in > function: 'int test_main(int, char**)' Can you insert a statement there to output the actual result of formatting? It works fine for me on Fedora 19 with GTK 3.8
Also which locale do run the test under?
(In reply to comment #5) > (In reply to comment #4) > > Took a quick look at the patch. What about the first error message? > > > > test/dttest.cpp(72): test string_ends_with(date_string, "19:34") failed in > > function: 'int test_main(int, char**)' > > Can you insert a statement there to output the actual result of formatting? > It works fine for me on Fedora 19 with GTK 3.8 OK.. sharp::DateTime d6 = sharp::DateTime::from_iso8601("2009-03-24T13:34:35.2914680-04:00"); date_string = gnote::utils::get_pretty_print_date(d6, true, false); cout << date_string BOOST_CHECK(string_ends_with(date_string, "19:34")); date_string = gnote::utils::get_pretty_print_date(d6, true, true); cout << date_string BOOST_CHECK(string_ends_with(date_string, "7:34 pm")); ===================================== gnote 3.9.3: src/test-suite.log ===================================== # TOTAL: 8 # PASS: 7 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: dttest ============ Mar 24 2009, 17:34 pm test/dttest.cpp(73): test string_ends_with(date_string, "19:34") failed in function: 'int test_main(int, char**)' mar 24 2009, 5:34 pm test/dttest.cpp(77): test string_ends_with(date_string, "7:34 pm") failed in function: 'int test_main(int, char**)' **** 2 errors detected
(In reply to comment #6) > Also which locale do run the test under? en_US.UTF-8 with timezone Etc/UTC (if it matters)
(In reply to comment #7) > Mar 24 2009, 17:34 pm > test/dttest.cpp(73): test string_ends_with(date_string, "19:34") failed in > function: 'int test_main(int, char**)' This is impossible > mar 24 2009, 5:34 pm > test/dttest.cpp(77): test string_ends_with(date_string, "7:34 pm") failed in > function: 'int test_main(int, char**)' weird. Note that the test fails here too.
From my understanding, given the result I get, the test is designed to only work in the maintainer's timezone. :-/
Created attachment 254805 [details] [review] Force timezone in dttest Try this patch, it should force timezone in test.
Have you tried applying latest patch? With patches applied it should work fine.
Sorry for not responding sooner. Yes I have tested the patch and I didn't get that test error anymore during build. Thank you
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.