cmockery icon indicating copy to clipboard operation
cmockery copied to clipboard

Using will_return_count with count=-1 (to always repeat return value) results in assertion failure

Open GoogleCodeExporter opened this issue 10 years ago • 3 comments

What steps will reproduce the problem?
1. Use the macro 'will_return_count' with a count value of -1
2.
3.

What is the expected output? What do you see instead?
The documentation indicates that the specified value will always be
repeated when the count is -1.  When used, the first assertion in
_will_return fires.

>>>>
    assert_true(count > 0);

What version of the product are you using? On what operating system?
cmockery-0.1.2
Windows Vista/Linux

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 26 Oct 2008 at 7:03

GoogleCodeExporter avatar Dec 08 '15 17:12 GoogleCodeExporter

Original comment by [email protected] on 10 Apr 2009 at 8:36

  • Changed state: Started

GoogleCodeExporter avatar Dec 08 '15 17:12 GoogleCodeExporter

Original comment by [email protected] on 10 Apr 2009 at 9:44

GoogleCodeExporter avatar Dec 08 '15 17:12 GoogleCodeExporter

This will be integrated into cmockery release 0.1.3.

Original comment by [email protected] on 7 Jul 2009 at 7:43

GoogleCodeExporter avatar Dec 08 '15 17:12 GoogleCodeExporter