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

_test_free causes testcase to fail when called with ptr = 0 #27

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

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Call _test_free with the first argument set to 0 or NULL
2. _test_free asserts that ptr must not be null
3. testcase fails

What is the expected output? What do you see instead?

Since calling free(0) is a no-op in standard C, cmockery should not behave
differently. 

What version of the product are you using? On what operating system?
cmockery-0.1.2 on windows XP using cygwin

Please provide any additional information below.


Original issue reported on code.google.com by ola.nils...@gmail.com on 1 Apr 2010 at 9:42

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