gpu: nvgpu: add more coverage to SYNC UT

This patch adds the following code coverage
1) Add a test to fail the allocation of syncpt_name correctly.
2) Add a test that covers all three branches of get_sync_ro_map
3) Add entry into the SWUTS.h and SWUTS.sources
4) Add test entries in the required_tests.json file
5) add nvgpu_safe_add_u64 to fix cert-C INT30 violation

Jira NVGPU-913

Change-Id: If0ccc9a9314494af1a663eb8ef37a68644c18453
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2267389
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
ddutta
2019-12-23 11:16:55 +05:30
committed by Alex Waterman
parent b11699fe57
commit d0ad13b024
5 changed files with 211 additions and 35 deletions

View File

@@ -76,6 +76,7 @@
* - @ref SWUTS-fifo-tsg-gv11b
* - @ref SWUTS-fifo-userd-gk20a
* - @ref SWUTS-fifo-usermode-gv11b
* - @ref SWUTS-nvgpu-sync
* - @ref SWUTS-init
* - @ref SWUTS-intr
* - @ref SWUTS-interface-atomic