CU_basic_show_failures() fails to properly run tests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cunit (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When I am building a test for my own library, I notice that the test binaries generated linking against the version of CUnit in the main repo doesn't actually run any tests, but does give an error code which is apparently detached from error messages. This is easily replicable and I have a test program that works like a charm.
To contrast, I built the latest version of CUnit from sourceforge and I did not see this same erroneous behavior, it worked just fine.
System info:
manchicken@
Description: Ubuntu 13.04
Release: 13.04
manchicken@
libcunit1-dev:
Installed: 2.1-0.dfsg-
Candidate: 2.1-0.dfsg-
Version table:
*** 2.1-0.dfsg-
500 http://
100 /var/lib/
Here is what I expect, given my test program (note, this is actual output using the latest stable version from SF:
-------
manchicken@
I'm here!
CUnit - A unit testing framework for C - Version 2.1-2
http://
HERE!!! Suite Initted!
Suite: bug_demo_suite
Test: Verify 1 == 1... ...passedHERE!!! Suite Cleaned!
Run Summary: Type Total Ran Passed Failed Inactive
Elapsed time = 0.000 seconds
I'm done!
-------
Here's what I get using the latest from the main repo:
-------
manchicken@
I'm here!
Error running tests: (20)No Error
I'm done!
-------
Here is how to build my test program: $ gcc -o libcunit1-bug ./libcunit1-bug.c -lcunit
I have attached my test program to this bug report.
Must be fixed by https:/ /bugs.launchpad .net/ubuntu/ +source/ cunit/+ bug/1507780
Thanks,
Azat.