After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793941 - 2.7.4: test failure on i686: 59 - test-gnc-timezone (Failed)
2.7.4: test failure on i686: 59 - test-gnc-timezone (Failed)
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Build system
2.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2018-02-28 23:04 UTC by Dmitry Smirnov
Modified: 2018-06-30 00:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dmitry Smirnov 2018-02-28 23:04:12 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 
---------------------------------------------------------- 
~~~~
Comment 1 John Ralls 2018-03-05 17:13:45 UTC
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?
Comment 2 Geert Janssens 2018-03-05 17:21:03 UTC
+1 to remove the pre-1916 tests. It's highly unlikely we will ever encounter data in that date range.
Comment 3 John Ralls 2018-03-06 17:57:06 UTC
OK, done.
Comment 4 Dmitry Smirnov 2018-03-11 10:31:49 UTC
Thanks. :)
Comment 5 John Ralls 2018-06-30 00:05:03 UTC
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.