MantisBT - libnslog
View Issue Details
0002736libnslog[All Projects] Generalpublic2020-01-23 06:492020-05-27 08:12
Reporterbavier 
Assigned Tokinnison 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSGuix SystemOS Versionguix 9448d0e
Summary0002736: libnslog tests fail with latest check version 0.13
DescriptionRunning tests from libnslog version 0.1.2 that were linked against most recent check version 0.13 produces the following failures:

Running suite(s): Test suite for libnslog
 libnslog: Basic tests
70%: Checks: 24, Failures: 7, Errors: 0
test/basictests.c:86:F:Simple log checks, no filters:test_nslog_trivial_corked_message:0: Captured message wasn't correct function name
test/basictests.c:112:F:Simple log checks, no filters:test_nslog_trivial_uncorked_message:0: Captured message wasn't correct function name
test/basictests.c:153:F:Simple log checks, no filters:test_nslog_two_corked_messages:0: Captured message wasn't correct function name
test/basictests.c:226:F:Simple filter checks:test_nslog_simple_filter_corked_message:0: Captured message wasn't correct function name
test/basictests.c:253:F:Simple filter checks:test_nslog_simple_filter_uncorked_message:0: Captured message wasn't correct function name
test/basictests.c:280:F:Simple filter checks:test_nslog_simple_filter_subcategory_message:0: Captured message wasn't correct function name
test/basictests.c:534:F:Trivial, varied, filter checks:test_nslog_filter_funcname:0: Captured message count was wrong

The failures in question attempt to check the function name logged by libnslog against the expected test case function name. In check 0.13 however, the implementation of the "START_TEST" macro was changed in such a way that the testcase functions have a "_fn" suffix. That is, the actual function name of the test should maybe be treated as an implementation detail.
Steps To Reproduce1. Build libnslog against check version 0.13.
2. Run test_testrunner "basic" tests
Additional InformationWorkaround in GNU Guix package is currently to build with the older check 0.12 package: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=7357b3d7a52eb5db1674012c50d308d792741c48
TagsNo tags attached.
Attached Files

Notes
(0002170)
kinnison   
2020-02-21 10:58   
Thanks, I've fixed the test suites to cope with both variants of check by using the `__func__` macro appropriately instead.
(0002225)
Vincent Sanders   
2020-05-27 08:12   
Thankyou for reporting this issue.
We believe this is fixed in the 3.10 release.
If this is not the case please feel free to reopen the issue with additional details.

Issue History
2020-01-23 06:49bavierNew Issue
2020-02-21 10:01kinnisonProjectNetSurf => libnslog
2020-02-21 10:01kinnisonCategoryDevelopment => General
2020-02-21 10:07kinnisonAssigned To => kinnison
2020-02-21 10:07kinnisonStatusnew => assigned
2020-02-21 10:58kinnisonStatusassigned => resolved
2020-02-21 10:58kinnisonResolutionopen => fixed
2020-02-21 10:58kinnisonNote Added: 0002170
2020-05-27 08:12Vincent SandersStatusresolved => closed
2020-05-27 08:12Vincent SandersNote Added: 0002225