google / cmockery

A lightweight library to simplify and generalize the process of writing unit tests for C applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mock_assert attempts to pass pointer via int argument to longjmp

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Compile and execute assert_module_test.c on LP64 platform.
2. Observe crash in setjmp.

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


What version of the product are you using? On what operating system?


Please provide any additional information below.

Fix by replacing the passing of the assert expression in the longjmp argument 
with passing the 
expression in a member of a volatile global structure.


Original issue reported on code.google.com by Stephen....@gmail.com on 2 Mar 2010 at 5:48

Sorry, this is an unintentional duplicate of issue 22.

Original comment by Stephen....@gmail.com on 15 Mar 2010 at 2:31