GnuCash
Contact   Instructions
Bug 796878 - test-qofsession fails on x86_32
Summary: test-qofsession fails on x86_32
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Build system (show other bugs)
Version: 3.3
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: core
QA Contact: core
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-02 02:16 EDT by Dmitry Smirnov
Modified: 2021-01-28 20:22 EST (History)
6 users (show)

See Also:


Attachments

Description Dmitry Smirnov 2018-10-02 02:16:41 EDT
test-qofsession fails as follows

~~~~
55/117 Testing: test-qofsession
55/117 Test: test-qofsession
Command: "/<<PKGBUILDDIR>>/.build/bin/test-qofsession"
Directory: /<<PKGBUILDDIR>>/.build/libgnucash/engine/test
"test-qofsession" start time: Oct 02 05:44 UTC
Output:
----------------------------------------------------------
Running main() from gtest_main.cc
[==========] Running 9 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 9 tests from QofSessionTest
[ RUN      ] QofSessionTest.swap_books
[       OK ] QofSessionTest.swap_books (1 ms)
[ RUN      ] QofSessionTest.ensure_all_data_loaded
[       OK ] QofSessionTest.ensure_all_data_loaded (0 ms)
[ RUN      ] QofSessionTest.get_error
[       OK ] QofSessionTest.get_error (0 ms)
[ RUN      ] QofSessionTest.pop_error
[       OK ] QofSessionTest.pop_error (0 ms)
[ RUN      ] QofSessionTest.clear_error
[       OK ] QofSessionTest.clear_error (0 ms)
[ RUN      ] QofSessionTest.load
/<<PKGBUILDDIR>>/libgnucash/engine/test/test-qofsession.cpp:182: Failure
      Expected: book
      Which is: 0x56c263d0
To be equal to: s.get_book ()
      Which is: 0x56c26468
/<<PKGBUILDDIR>>/libgnucash/engine/test/test-qofsession.cpp:188: Failure
      Expected: book
      Which is: 0x56c263d0
To be equal to: s.get_book ()
      Which is: 0x56c26468
[  FAILED  ] QofSessionTest.load (0 ms)
[ RUN      ] QofSessionTest.save
[       OK ] QofSessionTest.save (1 ms)
[ RUN      ] QofSessionTest.safe_save
[       OK ] QofSessionTest.safe_save (0 ms)
[ RUN      ] QofSessionTest.export_session
[       OK ] QofSessionTest.export_session (0 ms)
[----------] 9 tests from QofSessionTest (2 ms total)

[----------] Global test environment tear-down
[==========] 9 tests from 1 test case ran. (2 ms total)
[  PASSED  ] 8 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] QofSessionTest.load

 1 FAILED TEST
<end of output>
Test time =   0.02 sec
----------------------------------------------------------
Test Failed.
"test-qofsession" end time: Oct 02 05:44 UTC
"test-qofsession" time elapsed: 00:00:00

~~~~

Full build log:

https://buildd.debian.org/status/fetch.php?pkg=gnucash&arch=i386&ver=1%3A3.3-1&stamp=1538459082&raw=0
Comment 1 John Ralls 2018-10-04 18:50:48 EDT
Thanks. Turns out that the test was wrong but x86_64 compilers reused the same address for a destroy/construct which hid the error.
Comment 2 Geert Janssens 2018-12-28 15:00:25 EST
"the test *was* wrong", does that imply it's fixed now ?
Comment 3 John Ralls 2018-12-28 16:35:15 EST
Should be, I'm waiting for Dmitry to retest it.
Comment 4 Dmitry Smirnov 2018-12-28 20:19:46 EST
Any particular commit to cherry-pick/test on 3.3 ?
Comment 5 John Ralls 2018-12-28 22:30:56 EST
The commit was 7a4b06c44, but 3.4 should be out on Sunday so you could just wait.
Comment 6 Geert Janssens 2019-05-25 06:20:25 EDT
Any update on this ?
Comment 7 John Ralls 2021-01-28 20:22:28 EST
Closing. It's been over a year and a half.

Note You need to log in before you can comment on or make changes to this bug.