Skip to content

Commit

Permalink
Fix misusage of CMock in dir tasks.
Browse files Browse the repository at this point in the history
1. Change CMock policy of pointer from smart to compare_ptr;
2. Fix errors in test cases found by CMock.
  • Loading branch information
Moral-Hao authored and paulbartell committed Nov 27, 2023
1 parent 82b4c24 commit fd352fd
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 45 deletions.
3 changes: 1 addition & 2 deletions FreeRTOS/Test/CMock/tasks/tasks.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
:cmock:
:mock_prefix: mock_
:when_no_prototypes: :warn
:when_ptr: :smart
:when_ptr: :compare_ptr
:treat_externs: :include
:treat_inlines: :include
:enforce_strict_ordering: TRUE
:plugins:
- :ignore
- :ignore_arg
- :expect_any_args
- :array
- :callback
- :return_thru_ptr
:callback_include_count: true # include a count arg when calling the callback
Expand Down
Loading

0 comments on commit fd352fd

Please sign in to comment.