aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-11-13Merge remote-tracking branch 'origin/upstream-master'HEADmaster-kernel-build-2021mastermainThierry Strudel
Change-Id: Ie5edd0f8aff0a645707387b8bd42b0d695280ef3
2018-10-31Initial empty repositoryInna Palant
2018-10-17Merge pull request #59 from codehearts/reset-call-history-with-FFF_RESET_HISTORYMike Long
Clear `fff.call_history` when calling `FFF_RESET_HISTORY`
2018-10-11Clear `fff.call_history` when calling `FFF_RESET_HISTORY`Kate Hart
2018-02-02Merge pull request #28 from usr42/refactoringsMike Long
Refactorings
2018-01-30Merge remote-tracking branch 'original/master' into refactoringsusr42
2018-01-30Merge remote-tracking branch 'original/master' into refactoringsusr42
2018-01-30Publish lastest fff.h headerMike Long
2018-01-28Merge pull request #35 from alvarez86/return_val_historyMike Long
Return val history
2018-01-28Merge pull request #20 from usr42/masterMike Long
Fix for issue 13: Add function prototype to DECLARE_* macro
2018-01-28Merge branch 'master' into return_val_historyMike Long
2018-01-28Merge pull request #30 from rubiot/vararg_readmeMike Long
Adding a section explaining how to fake variadic functions
2018-01-10Merge remote-tracking branch 'original/master' into refactoringsusr42
2017-12-18Update to readme to correct misinformation on C standardMike Long
It turns out that nested functions are a gcc thing - not standard C. Closes #34
2017-12-18Merge pull request #39 from VincentDary/msvc-macro-fixMike Long
Msvc macro fix
2017-12-14Fix fff.h for MSVC macro compatibility.snak3xe
2017-12-14Fix fakegen.rb C header generator for M macro compatibility.snak3xe
2017-10-09Merge pull request #38 from nabijaczleweli/masterMike Long
Add syntax highlighting and remove inline HTML from README
2017-10-08Use markdown instead of inline HTML in READMEnabijaczleweli
2017-10-08Add syntax highlighting to READMEnabijaczleweli
2017-08-15Update README to explain the history of returned valuesPaulo Antonio Alvarez
Gives some motivation as well as a simple example taken from the test suite of fff.
2017-08-15fff.h now records the history of returned valuesPaulo Antonio Alvarez
With this, checks like only calling the unlock function when trylock succeeds are easier to implement.
2017-08-15Add test cases for saving the history of returned valuesPaulo Antonio Alvarez
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-15Return values saved in historyPaulo Antonio Alvarez
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-02-06Merge pull request #1 from usr42/vararg_testsRĂºbio
Improve vararg tests
2017-02-06Improve vararg testsusr42
2017-02-06Adding a section explaining how to fake variadic functionsRubio R. C. Terra
2017-02-04Merge remote-tracking branch 'upstream/master' into refactoringsusr42
2017-02-04Merge remote-tracking branch 'upstream/master'usr42
2017-02-03Merge pull request #27 from usr42/issue26Mike Long
Fix issue 26: Use void as parameter when no parameter exists
2017-02-03Merge pull request #25 from stephan-cr/fix-typos-in-readmeMike Long
Fix typos in README
2017-02-03Merge pull request #24 from stephan-cr/fix-multistatement-macroMike Long
Wrap statements in multistatement macro with do {} while (0)
2017-02-03Merge pull request #23 from usr42/issue21_without_issue13Mike Long
Fix issue 21: Use function pointer for call_history
2017-01-30Use void as parameter for FUNCNAME##_resetusr42
FUNCNAME##_reset(void) instead of FUNCNAME##_reset()
2017-01-26Rename putdml to putd_backslashusr42
2017-01-26Remove dead codeusr42
2017-01-26Use void as parameter when no parameter existsusr42
2017-01-26Remove brackets when calling putdmlusr42
2017-01-26Replace empty putd with putsusr42
2017-01-26Add putdmlusr42
putdml is a multiline putd which adds a \ at the end of the generated macro
2017-01-26indent funct with block instead of pushd and popdusr42
2017-01-24Fix typos in READMEStephan Creutz
2017-01-24Wrap statements in multistatement macro with do {} while (0)Stephan Creutz
2017-01-24Use function pointer for call_historyusr42
2017-01-21Fix issue13: Add function prototype to DECLARE_*usr42
2017-01-20Merge pull request #19 from usr42/masterMike Long
Refactoring and bugfix
2017-01-16Fix FAKE_VALUE_FUNC with 20 parametersusr42
2017-01-14Refactor output_macro_counting_shortcutsusr42
2017-01-14Fix gcc/g++ usage in Makefileusr42
2016-12-22Merge pull request #18 from aunsbjerg/masterMike Long
Auto-counting macros for declaration and definition of fake