GNOME Bugzilla – Bug 793941
2.7.4: test failure on i686: 59 - test-gnc-timezone (Failed)
Last modified: 2018-06-30 00:05:03 UTC
On Debian i386 "test-gnc-timezone" fails: ~~~~ 59 - test-gnc-timezone (Failed) 59/105 Testing: test-gnc-timezone 59/105 Test: test-gnc-timezone Command: "/build/gnucash-2.7.4/.build/bin/test-gnc-timezone" Directory: /build/gnucash-2.7.4/.build/libgnucash/engine/test "test-gnc-timezone" start time: Feb 28 22:59 UTC Output: ---------------------------------------------------------- Running main() from gtest_main.cc [==========] Running 9 tests from 1 test case. [----------] Global test environment set-up. [----------] 9 tests from gnc_timezone_constructors [ RUN ] gnc_timezone_constructors.test_default_constructor [ OK ] gnc_timezone_constructors.test_default_constructor (1 ms) [ RUN ] gnc_timezone_constructors.test_pacific_time_constructor [ OK ] gnc_timezone_constructors.test_pacific_time_constructor (0 ms) [ RUN ] gnc_timezone_constructors.test_posix_timezone [ OK ] gnc_timezone_constructors.test_posix_timezone (0 ms) [ RUN ] gnc_timezone_constructors.test_gmt_timezone [ OK ] gnc_timezone_constructors.test_gmt_timezone (0 ms) [ RUN ] gnc_timezone_constructors.test_GMT_plus_7_timezone [ OK ] gnc_timezone_constructors.test_GMT_plus_7_timezone (0 ms) [ RUN ] gnc_timezone_constructors.test_IANA_Belize_tz [ OK ] gnc_timezone_constructors.test_IANA_Belize_tz (0 ms) [ RUN ] gnc_timezone_constructors.test_IANA_Perth_tz /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:160: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "AWST" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:162: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 27804 To be equal to: 28800 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:160: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "AWST" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:162: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 27804 To be equal to: 28800 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:160: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "AWST" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:162: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 27804 To be equal to: 28800 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:160: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "AWST" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:162: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 27804 To be equal to: 28800 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:160: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "AWST" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:162: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 27804 To be equal to: 28800 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:160: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "AWST" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:162: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 27804 To be equal to: 28800 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:160: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "AWST" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:162: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 27804 To be equal to: 28800 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:160: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "AWST" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:162: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 27804 To be equal to: 28800 [ FAILED ] gnc_timezone_constructors.test_IANA_Perth_tz (0 ms) [ RUN ] gnc_timezone_constructors.test_IANA_Minsk_tz /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:222: Failure Expected: tz->std_zone_abbrev() Which is: "LMT" To be equal to: "MMT" /build/gnucash-2.7.4/libgnucash/engine/test/gtest-gnc-timezone.cpp:224: Failure Expected: tz->base_utc_offset().total_seconds() Which is: 6616 To be equal to: 6600 [ FAILED ] gnc_timezone_constructors.test_IANA_Minsk_tz (1 ms) [ RUN ] gnc_timezone_constructors.test_bogus_time_constructor [ OK ] gnc_timezone_constructors.test_bogus_time_constructor (0 ms) [----------] 9 tests from gnc_timezone_constructors (2 ms total) [----------] Global test environment tear-down [==========] 9 tests from 1 test case ran. (2 ms total) [ PASSED ] 7 tests. [ FAILED ] 2 tests, listed below: [ FAILED ] gnc_timezone_constructors.test_IANA_Perth_tz [ FAILED ] gnc_timezone_constructors.test_IANA_Minsk_tz 2 FAILED TESTS <end of output> Test time = 0.01 sec ---------------------------------------------------------- Test Failed. "test-gnc-timezone" end time: Feb 28 22:59 UTC "test-gnc-timezone" time elapsed: 00:00:00 ---------------------------------------------------------- ~~~~
This is due to the fix for https://bugzilla.gnome.org/show_bug.cgi?id=790845#c43. It would appear that Debian ships different zone files depending on architecture, so using __LP64__ to select the answer isn't correct. I suppose the most correct solution would be to add bool tzif2 and bool is_tzif2() to GncTimezone, but frankly the actual use-case for those early timezones in GnuCash is extremely weak so I think the right answer is to simply remove the pre-1916 tests. What do you think?
+1 to remove the pre-1916 tests. It's highly unlikely we will ever encounter data in that date range.
OK, done.
Thanks. :)
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=793941. Please update any external references or bookmarks.