mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: update posix thread unit tests
Update the unit tests for posix thread unit to increase coverage. JIRA NVGPU-6904 Change-Id: Ib103de1ee37fb4986aa36900772b78b990ccb02a Signed-off-by: ajesh <akv@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2555772 (cherry picked from commit cd45d1cd2d095c77d738fdf7746fd258bc58353b) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2560213 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: Shashank Singh <shashsingh@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@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:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -63,6 +63,12 @@
|
||||
* 4) Wait for the thread to be created by polling for a shared variable.
|
||||
* 5) Return Success once the thread function is called and the shared
|
||||
* variable is set which indicates a successful thread creation.
|
||||
* 6) Above steps are done for thread with a name, thread without a name
|
||||
* and thread function which returns an error value.
|
||||
* 7) For code coverage, based on a passed argument the created thread tries
|
||||
* to join with itself expecting a BUG callback. This should trigger a BUG
|
||||
* as expected by the calling thread. This test is run only if QNX is not
|
||||
* defined, as there is a difference in the return values.
|
||||
*
|
||||
* Thread creation with a priority value
|
||||
* 1) Reset all global and shared variables to 0.
|
||||
@@ -74,6 +80,7 @@
|
||||
* 6) In some host machines, permission is not granted to create threads
|
||||
* with priority. In that case skip the test by returning PASS.
|
||||
* 7) Return PASS if the thread is created with requested priority.
|
||||
* 8) Above steps are done for thread with a name and without a name.
|
||||
*
|
||||
* Thread stop
|
||||
* 1) Follow steps 1 - 4 of Thread creation scenario.
|
||||
|
||||
Reference in New Issue
Block a user