yodamaster / cmockery

Automatically exported from code.google.com/p/cmockery
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 neil.a.g...@gmail.com on 26 Oct 2008 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by stewarta...@gmail.com on 10 Apr 2009 at 8:36

GoogleCodeExporter commented 9 years ago

Original comment by stewarta...@gmail.com on 10 Apr 2009 at 9:44

GoogleCodeExporter commented 9 years ago
This will be integrated into cmockery release 0.1.3.

Original comment by stewarta...@gmail.com on 7 Jul 2009 at 7:43