Граф коммитов

21 Коммитов

Автор SHA1 Сообщение Дата
Dan Cristoloveanu 20b4fb7cc7
Lock factory to allow using umock in multithreaded tests (#177)
* Add lock/unlock functions specs

* Add specs for umock_c_set_lock_functions

* Add some tests for lock/unlock

* Add test for not initialized for set lock functions

* Add unit tests for set lock functions

* Update tests for the umock_c unit to check call order

* Made all tests pass again with call order for the umock_c unit

* Cleanup umock_c unit tests

* Fix specs of umock_c unit

* Minor update of umockcallrecorder specs

* Add mock_lock_functions

* Update umockcallrecorder interface

* Update CMakeLists

* Changed half of umockcallrecorder tests to check order of mocked calls also

* Transformed all unit tests for umockcallrecorder to have mock call order

* Implement umockcallrecorder_set_lock_functions

* Fixed umock_c unit to simply call into the call recorder

* Removed backticks

* Make umock_c_wout_init_ut build

* Builds all tests again

* Add locking for umockcallrecorder_reset_all_calls

* Add locking to umockcallrecorder_add_expected_call

* Add locking for umockcallrecorder_add_actual_call

* Add locking for umockcallrecorder_get_actual_calls

* Add locking for umockcallrecorder_get_expected_calls

* Add locking for umockcallrecorder_get_last_expected_call

* Add locking for umockcallrecorder_clone

* Implemented locking in umockcallrecorder

* Add one more test for resetting lock functions to NULL

* Add lock factory and windows lock factory implementation

* Add destroy to the lock_if

* Add params to lock factory create lock

* Add creation and destroy of the lock for call recorder

* All tests pass again

* call recorder uses not the lock interface

* Remove lock/unlock functions in favor of lock factory

* Minor fix of int test

* Rename test to with_lock_factory

* Add int test checking for multithreaded issues

* Only run lock factory int tests for Win or Unix

* Make the threaded test run on Linux

* Tune lock_factory int test for Valgrind

* Fix test leaks

* Add umock_lock_factory_windows

* Add unit tests for umock_lock_factory_windows

* Add pthread lock unit tests

* Remove backticks

* Check that we call pthread_rwlock_destroy for Linux locks

* Fix build error in windows lock factory tests

* Fix build issue in lock factory windows unit tests

* Address CR comments

* Fix UT for umock_lock factory for pthread
2020-11-25 19:41:30 -08:00
Dan Cristoloveanu 55aed517ec Remove ValidateAllArguments and IgnoreAllArguments 2020-04-16 11:21:19 -07:00
Dan Cristoloveanu f6b2e90267 Add support for several Windows types 2020-03-30 12:13:34 -07:00
Dan Cristoloveanu 1f0e52e3f5 Add IGNORED_STRUCT_ARG support 2020-03-27 12:32:35 -07:00
Dan Cristoloveanu bde616fbc4 Combine IGNORED_NUM_ARG and IGNORED_PTR_ARG 2020-03-20 12:14:52 -07:00
Dan Cristoloveanu 43844a8887 Update documentation for ENABLE_MOCK_FILTERING 2020-01-15 09:00:15 -08:00
Dan Cristoloveanu 725054d936 Add UMOCK_REAL helper 2019-06-18 13:03:32 -07:00
Dan Cristoloveanu 849bd82de8 Add real support 2019-06-13 19:22:39 -07:00
Dan Cristoloveanu e011195a2a Beautify MOCKABLE_FUNCTION_WITH_RETURNS 2019-05-02 21:28:45 -07:00
Dan Cristoloveanu 3f365cb644 Add MOCKABLE_FUNCTION_WITH_RETURNS 2019-05-01 18:32:59 -07:00
Dan Cristoloveanu cb3c74970d Addressed CR comments 2019-03-17 16:26:02 -07:00
Dan Cristoloveanu b6cf14c63b Add CaptureArgumentValue_xxx APIs 2019-03-17 16:26:02 -07:00
Ewerton Scaboro da Silva b14679d4e2 Additional updates due to macro_utils renaming 2019-03-12 10:52:11 -07:00
Dan Cristoloveanu 4c55174ad1 Add mock filtering with dedication for the IoT team 2018-06-08 13:40:46 -07:00
Damon Barry e7b0d2457b Remove/Replace non-ascii chars in code and markdown
Customers on ja-JP Windows (and others) can get errors when compiling, because their codepage doesn't support some of the Unicode chars that have made their way into the code comments. This change removes/replaces the Unicode chars.
2018-01-26 13:32:06 -08:00
Dan Cristoloveanu 6fca8cab5b Add Auto ignore argument feature 2017-03-05 17:04:13 -08:00
Dan Cristoloveanu da6059653c Fix leaks for paired calls with negative unittests and SetFailReturn 2017-02-09 00:04:47 -08:00
Dan Cristoloveanu 2ca4f1bd70 Add ValidateArgumentValue_{arg_name}_AsType modifier to umock_c 2017-01-27 14:54:49 -08:00
dcristoloveanu 676391af95 Add option to have REGISTER_UMOCK_VALUE_TYPE taking one argument only 2016-10-11 09:56:16 -07:00
Marc Schier be4dc0d1df static mocks 2016-09-08 11:51:15 +02:00
dcristoloveanu dbc55741cb Initial commit 2016-08-31 20:34:00 -07:00