1
0
mirror of https://github.com/meekrosoft/fff synced 2026-01-23 08:25:59 +01:00
Commit Graph

205 Commits

Author SHA1 Message Date
James Fraser
96827e3a39 Merge branch 'zrax-no_extern_c' 2018-12-14 19:58:13 +11:00
James Fraser
fe54d15393 Merge branch 'no_extern_c' of https://github.com/zrax/fff into zrax-no_extern_c 2018-12-14 19:56:22 +11:00
Alain
b76c7c7168 Custom return value delegate sequences for variadic functions (#63)
* Custom return value delegate sequences for variadic functions
* Added unit tests for variadic functions custom return value delegate sequences
* Fixes in code style
* Variadic functions custom delegates also tested in C++
* Fixed some compilation warnings
* Added test for variadic function custom delegates sequence reset
* Updated documentation with variadic functions custom delegate sequences
* Update README.md
* Minor style changes.

Thank you very much @oliviera9!
2018-12-05 23:36:32 +11:00
James Fraser
35b26878a7 Update README.md 2018-12-04 21:26:48 +11:00
James Fraser
eabb622ea0 Update README.md 2018-12-04 20:49:24 +11:00
James Fraser
4e031416d6 Update README.md 2018-12-04 20:49:00 +11:00
James Fraser
5b930a1382 Updated cheat sheet with variadic examples 2018-12-04 20:47:16 +11:00
James Fraser
8e0e312556 Added TOC to README.md 2018-12-04 20:28:37 +11:00
James Fraser
955db6c60c Merge pull request #67 from wulfgarpro/master
Added in-source appveyor config.
2018-12-01 20:50:07 +11:00
James Fraser
0376823b0c Moved PR template... doesn't seem to be picked up in subdirectory. 2018-11-28 17:20:09 +11:00
James Fraser
5fb4dc64e8 Added in-source appveyor config. 2018-11-28 17:06:44 +11:00
James Fraser
6011dfde79 Updated README.md with AppVeyor status badge. 2018-11-28 09:11:34 +11:00
James Fraser
d0328c9e4a Rename PULL_REQUEST_TEMPLATE.md to pull_request_template.md 2018-11-26 20:07:57 +11:00
James Fraser
840a619e19 Rename PULL_REQUEST_TEMPLATE.md to .github/PULL_REQUEST_TEMPLATE/PULL_REQUEST_TEMPLATE.md 2018-11-26 20:02:29 +11:00
Mike Long
11b70375a6 Merge pull request #64 from meekrosoft/wulfgarpro-patch-1
Update issue and feature templates
2018-11-26 09:53:44 +01:00
Mike Long
54c35b6a1b Merge pull request #66 from meekrosoft/wulfgarpro-patch-2
Create PULL_REQUEST_TEMPLATE.md
2018-11-26 08:58:48 +01:00
James Fraser
3553583f57 Create PULL_REQUEST_TEMPLATE.md 2018-11-25 16:38:22 +11:00
James Fraser
dc667cbf82 Fixed OS specifier. 2018-11-25 16:08:38 +11:00
James Fraser
15cb0ecbac Remove nonsense boilerplate 2018-11-25 16:07:47 +11:00
James Fraser
e0ca6b9e72 Update issue templates 2018-11-25 15:53:07 +11:00
Mike Long
1cac9afc41 Merge pull request #61 from wulfgarpro/master
Added support for specifying calling conventions.
2018-11-23 08:28:42 +01:00
James Fraser
45c4d31690 Re-instated assert from include fixture as per last commit fix. 2018-11-16 20:27:33 +11:00
James Fraser
1c981604a1 Fixed erroneous change. 2018-11-16 20:25:10 +11:00
James Fraser
d0a214c584 Fixed indentation style. 2018-11-16 20:14:22 +11:00
James Fraser
a31a9ee38c Added support for specifying calling conventions. 2018-11-16 02:01:11 +11:00
Mike Long
cd727d4195 Merge pull request #59 from codehearts/reset-call-history-with-FFF_RESET_HISTORY
Clear `fff.call_history` when calling `FFF_RESET_HISTORY`
2018-10-17 21:56:38 +02:00
Kate Hart
86c5e44614 Clear fff.call_history when calling FFF_RESET_HISTORY 2018-10-11 21:31:27 -07:00
Michael Hansen
b8f9e65387 Remove extern "C" from fake declarations.
Assuming your C interfaces are appropriately wrapped for C++, it is
unnecessary to force the fakes to be declared extern "C", and doing so
causes any functions declared with C++ linkage to be impossible to fake
due to the conflicting linkage declarations.
2018-05-09 13:26:44 -07:00
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
Mike Long
82eab51659 Update to readme to correct misinformation on C standard
It turns out that nested functions are a gcc thing - not standard C.

Closes #34
2017-12-18 19:57:20 +01:00
Mike Long
b9a336b2d7 Merge pull request #39 from VincentDary/msvc-macro-fix
Msvc macro fix
2017-12-18 14:58:27 +01:00
snak3xe
e61b221827 Fix fff.h for MSVC macro compatibility. 2017-12-14 23:01:41 +01:00
snak3xe
eca3ccbe6c Fix fakegen.rb C header generator for M macro compatibility. 2017-12-14 22:52:27 +01:00
Mike Long
719dd8b6a3 Merge pull request #38 from nabijaczleweli/master
Add syntax highlighting and remove inline HTML from README
2017-10-09 09:20:05 +02:00
nabijaczleweli
fcc7f1c46f Use markdown instead of inline HTML in README 2017-10-08 01:44:10 +02:00
nabijaczleweli
a795833cba Add syntax highlighting to README 2017-10-08 01:39:36 +02: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