Mike Long
ef24c19e64
Merge pull request #28 from usr42/refactorings
...
Refactorings
2018-02-02 16:36:55 +01:00
usr42
8b5e44b872
Merge remote-tracking branch 'original/master' into refactorings
2018-01-30 22:47:24 +01:00
usr42
d9082e8d17
Merge remote-tracking branch 'original/master' into refactorings
2018-01-30 21:10:17 +01:00
Mike Long
9e9438ef0b
Publish lastest fff.h header
2018-01-30 10:41:43 +01:00
Mike Long
953ff07a7d
Merge pull request #35 from alvarez86/return_val_history
...
Return val history
2018-01-28 17:36:18 +00:00
Mike Long
ffde0537d8
Merge pull request #20 from usr42/master
...
Fix for issue 13: Add function prototype to DECLARE_* macro
2018-01-28 17:35:58 +00:00
Mike Long
2c28c14e83
Merge branch 'master' into return_val_history
2018-01-28 17:24:54 +00:00
Mike Long
b359c2391b
Merge pull request #30 from rubiot/vararg_readme
...
Adding a section explaining how to fake variadic functions
2018-01-28 17:21:05 +00:00
usr42
15408ba2a4
Merge remote-tracking branch 'original/master' into refactorings
2018-01-10 08:38:53 +01:00
Paulo Antonio Alvarez
fdbac79ada
Update README to explain the history of returned values
...
Gives some motivation as well as a simple example taken from the test
suite of fff.
2017-08-15 23:49:07 -03:00
Paulo Antonio Alvarez
e2292d7971
fff.h now records the history of returned values
...
With this, checks like only calling the unlock function when trylock
succeeds are easier to implement.
2017-08-15 23:42:28 -03:00
Paulo Antonio Alvarez
3000b0b6a4
Add test cases for saving the history of returned values
...
We test the following cases:
1 - Are return values set with fake.return_val saved in history?
2 - Are return values of a RETURN_SEQ saved in history?
3 - Are return values return by a CUSTOM_FAKE_SEQ saved in history?
2017-08-15 23:40:58 -03:00
Paulo Antonio Alvarez
89ea0e10d8
Return values saved in history
...
On some contexts, we need to call one function to free some resource
allocated by another function based on the return value of the second
function. For example, every time pthread_mutex_trylock suceeds, you
need to unlock it, and only in those cases. While this could be done
with the return value sequence, it does not really work for a sequence
of custom fakes. Now we save the return values in the member
return_val_history, which works pretty much like arg_history, only
for the return values.
2017-08-15 23:36:49 -03:00
Rúbio
64ec1fc415
Merge pull request #1 from usr42/vararg_tests
...
Improve vararg tests
2017-02-06 19:15:21 -02:00
usr42
68692c712c
Improve vararg tests
2017-02-06 21:36:34 +01:00
Rubio R. C. Terra
7cb667102d
Adding a section explaining how to fake variadic functions
2017-02-06 18:14:02 -02:00
usr42
3ec2c2b326
Merge remote-tracking branch 'upstream/master' into refactorings
2017-02-04 12:44:38 +01:00
usr42
248c7906b4
Merge remote-tracking branch 'upstream/master'
2017-02-04 12:34:55 +01:00
usr42
3d0919b6e0
Rename putdml to putd_backslash
2017-01-26 20:47:06 +01:00
usr42
4ccfd2681e
Remove dead code
2017-01-26 20:43:12 +01:00
usr42
91e796a784
Remove brackets when calling putdml
2017-01-26 17:15:07 +01:00
usr42
985fbe374e
Replace empty putd with puts
2017-01-26 16:43:54 +01:00
usr42
49c814ff34
Add putdml
...
putdml is a multiline putd which adds a \ at the end of the generated macro
2017-01-26 16:40:08 +01:00
usr42
f6fd3cf5dc
indent funct with block instead of pushd and popd
2017-01-26 15:47:16 +01:00
usr42
d2992fef8f
Fix issue13: Add function prototype to DECLARE_*
2017-01-21 20:06:27 +01:00