Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.html fail_connect_to_customer_database() code doesn't match example source #28

Open
GoogleCodeExporter opened this issue Dec 8, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Open http://cmockery.googlecode.com/svn/trunk/doc/index.html#Mock_Functions 
2. Observe the fail_connect_to_customer_database() source and note that it 
won't fail as the comment explains, because it includes a will_return() call
3. Compare that to 
http://code.google.com/p/cmockery/source/browse/trunk/src/example/customer_datab
ase_test.c?r=42, which doesn't include the will_return() call

What version of the product are you using? 
0.1.2


Index: index.html
===================================================================
--- index.html  (revision 42)
+++ index.html  (working copy)
@@ -466,7 +466,6 @@
 /* This test fails as the mock function connect_to_database() will have no
  * value to return. */
 void fail_connect_to_customer_database(void **state) {
-    will_return(connect_to_database, 0x0DA7ABA53);
     assert_true(connect_to_customer_database() ==
                 (DatabaseConnection*)0x0DA7ABA53);
 }


Original issue reported on code.google.com by daryl.sp...@gmail.com on 4 Jan 2011 at 7:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant