Menu

#12 incorrect failures count (regression)

open
nobody
5
2010-07-13
2010-07-13
Anonymous
No

Hi, I was just trying cfix for the first time, especially to help me test kernel mode components, so I installed the latest version (1.7.0.3773) and used the (more complicated) example available in the documentation (Chapter 6 - Authoring a test suite).
According to the example, Test2 should fail in the line below
CFIX_ASSERT( a == 42 );
and, in fact, it fails. When using the debugger it stops in the line above and I can continue testing normally.
The only problem about it is when looking at the log report and the logging that gets generated.

Steps to reproduce the bug:
1-install cfix 1.7.0.3773 (XP SP3, 32bits)
2-compile the example containing 2 fixtures and 3 tests available in the docs at Chapter 6 - Authoring a test suite
3-run "cfix32 -kern -z ktest.sys" (it doesn't matter whether or not you use a debugger)

In the end, I get the following output:
...
[Success] FFRFrameworkDrvTest.MyFixture.Test1
[Failure] FFRFrameworkDrvTest.MyFixture.Test2
c:\vss\altair2\engine\ffrframework\ffrframework\test\test.c(65)
Test2

Expression: a == 42
Last Error: 0 ( )

[Success] FFRFrameworkDrvTest.MyFixture.Test2
[Log] FFRFrameworkDrvTest.MyFixture.[Teardown]
...
2 Fixtures
3 Test cases
3 succeeded
0 failed
0 inconclusive

I noticed this is a regression because I tried cfix 1.6.0.3683 and everything worked as expected:

2 Fixtures
3 Test cases
2 succeeded
1 failed
0 inconclusive

Thank you very much.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB