GNOME Bugzilla – Bug 682651
Skip certain tests with --disable-debug
Last modified: 2019-02-22 11:58:21 UTC
When compiling gcr-3.5.90 from tarball I also ran tests which resulted in following failure: TEST: test-subject-public-key... (pid=20135) /gcr/subject-public-key/rsa/cert-attributes: ** ERROR:test-subject-public-key.c:100:setup_attributes: assertion failed (klass == CKO_CERTIFICATE): (0x00000000 == 0x00000001) FAIL GTester: last random seed: R02S5a410c9e821358ec3f1274dc2fd220eb This is on Gentoo ~amd64.
Only the tests in the for loop fail, other two tests complete fine: /gcr/subject-public-key/load-failure-lookup: OK /gcr/subject-public-key/load-failure-build: OK
This only happens within clean environment.
Duh.. this is due to --disable-debug. Would it be possible to skip this test if debugging is disabled?
Created attachment 222382 [details] [review] gcr-failing-tests-without-debug.patch "Fixes" needed for testsuite to pass with --disable-debug.
Very strange. I'm unable to duplicate this issue, and this is the only time I've ever heard about this. Are you building with strange options? What do your build logs look like? What does the entire test output look like? Could you run the test in question under valgrind and see what gets output?
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!