mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: add test for bug unit
Add a new test for warn message functionality as part of bug UT. Jira NVGPU-4478 Change-Id: I2a250e4f6dc6946027e995ec3f340bb113c60f58 Signed-off-by: ajesh <akv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2281019 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Sagar Kamble <skamble@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -86,4 +86,31 @@ int test_expect_bug(struct unit_module *m, struct gk20a *g, void *args);
|
||||
*/
|
||||
int test_bug_cb(struct unit_module *m, struct gk20a *g, void *args);
|
||||
|
||||
/**
|
||||
* Test specification for test_warn_msg
|
||||
*
|
||||
* Description: Test the warn message functionality.
|
||||
*
|
||||
* Test Type: Feature
|
||||
*
|
||||
* Targets: nvgpu_posix_warn
|
||||
*
|
||||
* Inputs: None
|
||||
*
|
||||
* Steps:
|
||||
* 1) Call nvgpu_posix_warn function with cond as 0.
|
||||
* 2) Check the return value from function nvgpu_posix_warn. If it is not
|
||||
* equal to 0, return FAIL.
|
||||
* 3) Call nvgpu_posix_warn function with cond as 1.
|
||||
* 4) Check the return value from function nvgpu_posix_warn. If it is not
|
||||
* equal to 1, return FAIL.
|
||||
* 5) Return PASS.
|
||||
*
|
||||
* Output:
|
||||
* The test returns PASS if both the calls of nvgpu_posix_warn function returns
|
||||
* the expected return value. Otherwise, the test returns FAIL.
|
||||
*
|
||||
*/
|
||||
int test_warn_msg(struct unit_module *m, struct gk20a *g, void *args);
|
||||
|
||||
#endif /* __UNIT_POSIX_BUG_H__ */
|
||||
|
||||
Reference in New Issue
Block a user