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

491 Коммитов

Автор SHA1 Сообщение Дата
Dan Cristoloveanu c312c2d66a
New deps and remove main.c (#196)
* Update dependencies

* Remove main.c
2021-04-06 17:50:07 -07:00
Dan Cristoloveanu b7041eeffd
Update dependencies (#195)
* Update dependencies

* Fix build errors
2021-04-06 14:50:35 -07:00
anporumb e8ef999a3d
use latest deps (#194) 2021-03-29 11:37:41 -07:00
anporumb 5a786b3ee0
use latest deps (#193) 2021-03-26 19:57:01 -07:00
anporumb 4ff2de44ea
update for what you include (#192) 2021-02-19 09:06:13 -08:00
anporumb 99846fa3a7
use w4 (#190) 2021-02-09 10:58:42 -08:00
Dan Cristoloveanu 02ed1852d4
Bump cmake version (#189)
* Update dependencies

* Bump version for cmake

* Add perf tests option
2021-01-27 21:35:21 -08:00
Dan Cristoloveanu 985180e6de
Update dependencies (#188) 2021-01-26 15:57:14 -08:00
Matt Durak d03181fd70
Fixing Linux iwyu warnings (#187)
* Fixing Linux iwyu warnings

* Fix bad .gitignore
2021-01-25 08:41:14 -08:00
Matt Durak 1b2da0e46a
Update c-build-tools and fix errno include (#186) 2021-01-21 16:49:11 -08:00
Dan Cristoloveanu 54a17474a8
export macro_utils.h for iwyu so we avoid false positives (#185) 2021-01-21 12:30:19 -08:00
Dan Cristoloveanu 6799def49c
Add includecheck leg (#184)
* Use latest deps

* Add includecheck leg

* Fix includes

* keep errno for iwyu

* Use latest submodules

* Build includecheck with cpp unit test
2021-01-21 09:59:24 -08:00
Matt Durak 2676e3d54c
Update deps for c-build-tools (#183) 2021-01-20 12:41:53 -08:00
Dan Cristoloveanu a057c10606
New dependencies (#182) 2020-12-12 20:13:09 -08:00
Dan Cristoloveanu 2c11c9476d
Update deps with newer build tools (#181) 2020-12-04 12:55:11 -08:00
Dan Cristoloveanu 1588626e1b
Link umock_c in int tests (#178) 2020-12-04 12:50:54 -08:00
Dan Cristoloveanu 0bdfb318ac
Use build_test_artifacts instead of build_c_tests (#180) 2020-12-03 12:05:36 -08:00
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
Matt Durak c657f7be40
Fix umocktypes_struct for when struct fields are const (like THANDLE(…)) (#176)
* Fix umocktypes_struct for when struct fields are const (like THANDLE(...))

* Fix build script by removing NuGet and VLD install

* Actually use test functions so  they aren't optimized out

* Fix test function casts

* Remove string check on pointer type because it's not the same on all platforms
2020-11-24 17:27:34 -08:00
anporumb 0af0e447ef
use latest (#175) 2020-11-12 14:44:31 -08:00
Dan Cristoloveanu fe63aeb182
New dependencies (#174) 2020-11-04 21:47:30 -08:00
anporumb 34e0cb5663
uses non azure deps (#173)
* git rm azure-c-build-tools  azure-c-logging azure-c-testrunnerswitcher azure-macro-utils-c azure-macro-utils-c

* replaced modules with the renamed ones

* umock uses the renamed modules
2020-10-30 13:24:51 -07:00
anporumb 062f7e5c34
use latest and macro split (#172) 2020-10-19 15:48:07 -07:00
anporumb d42e3f3d18
2 preprocessors (#170)
* remove _MSVC_TRADITIONAL

* use latest dependencies

* use latest vld.props
2020-10-05 17:20:53 -07:00
anporumb b69da6bd02
prepare zc preprocessor (#169)
* prepare for zc_preprocessor

* rename testrunner to azure-c-testrunnerswitcher

* rename ctest to azure-ctest

* use the real names of folders

* use latest dependencies

* use our own pool for building

* use dependencies in a canon form

* use latest deps

* use canon deps

* remove platform

* use latest of azure-c-testrunnerswitcher

* uses latest testrunnerswitcher with the right SHA
2020-09-29 17:26:01 -07:00
Dan Cristoloveanu 09d7fefe27 Fix leaks in tests 2020-06-12 17:47:56 -07:00
Dan Cristoloveanu ff6c9ebb27 Fix vld.props to run with vld 2020-06-12 17:47:56 -07:00
Parth Aggarwal 4370367ee2
Create vld.props 2020-06-12 19:31:55 -04:00
Parth Aggarwal 93d1ef25d0
Merge pull request #166 from Azure/adding_short
Adding SHORT to windows types
2020-06-09 17:19:23 -04:00
Parth Aggarwal 3685ad94d8 fixed project name 2020-06-09 17:05:56 -04:00
Parth Aggarwal 224fa280eb one more fix 2020-06-09 16:59:53 -04:00
Parth Aggarwal 9b0039154f fixed cmakelist.txt 2020-06-09 16:53:17 -04:00
Parth Aggarwal 74ff3f9d83 fixed cmake 2020-06-09 16:40:27 -04:00
parth21999 2666ca48d6 updated build file 2020-06-09 16:02:38 -04:00
parth21999 5e791bda78 corrected CMakeLists.txt 2020-06-09 15:13:43 -04:00
parth21999 4990b68088 added azure-c-build-tools 2020-06-09 14:59:20 -04:00
Parth Aggarwal 4791e3c8bb reordered dependencies 2020-06-02 15:22:20 -04:00
Parth Aggarwal bc25637dae adding azure-c-logging 2020-06-02 15:19:30 -04:00
parth21999 e045803d55 Updated ctest 2020-06-01 18:58:23 -04:00
parth21999 f7d902d617 Registered SHORT as int16_t 2020-06-01 17:13:29 -04:00
Dan Cristoloveanu 5bb5ec44ca Update dependencies 2020-05-04 22:48:53 -07:00
Dan Cristoloveanu 55aed517ec Remove ValidateAllArguments and IgnoreAllArguments 2020-04-16 11:21:19 -07:00
Dan Cristoloveanu 4d145bb762 Fix const return problem 2020-04-15 21:50:34 -07:00
Dan Cristoloveanu 7a7a0faa70 Add backticks to SRS 2020-03-31 11:47:20 -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 194417c6b6 Fix one more occurence of ignored_ptr_arg 2020-03-20 12:39:14 -07:00
Dan Cristoloveanu bde616fbc4 Combine IGNORED_NUM_ARG and IGNORED_PTR_ARG 2020-03-20 12:14:52 -07:00
amarsa-msft a182ca3bb9
Merge pull request #151 from amarsa-msft/umock_reals
rename implicit real declarations to umock_reals
2020-03-19 15:11:41 -07:00
Amar Sagare d77f6292de fix test project 2020-03-19 14:06:48 -07:00