mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +08:00
ULT renaming: Retain & release tests
Related-To: NEO-2236 Change-Id: I2e2d22b8925bf93951aacce75e4555f9d250e5d7 Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
cf1becaf03
commit
023819ee0b
@@ -15,7 +15,7 @@ typedef api_tests clRetainReleaseContextTests;
|
||||
|
||||
namespace ULT {
|
||||
|
||||
TEST_F(clRetainReleaseContextTests, retainAndrelease) {
|
||||
TEST_F(clRetainReleaseContextTests, GivenValidContextWhenRetainingAndReleasingThenContextReferenceCountIsUpdatedCorrectly) {
|
||||
cl_context context = clCreateContext(nullptr, 1, devices, nullptr, nullptr, &retVal);
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
EXPECT_NE(nullptr, context);
|
||||
|
||||
@@ -14,7 +14,7 @@ using namespace NEO;
|
||||
typedef api_tests clRetainReleaseDeviceTests;
|
||||
|
||||
namespace ULT {
|
||||
TEST_F(clRetainReleaseDeviceTests, retain) {
|
||||
TEST_F(clRetainReleaseDeviceTests, GivenRootDeviceWhenRetainingThenReferenceCountIsOne) {
|
||||
cl_uint numEntries = 1;
|
||||
cl_device_id devices[1];
|
||||
|
||||
@@ -36,7 +36,7 @@ TEST_F(clRetainReleaseDeviceTests, retain) {
|
||||
EXPECT_EQ(1u, theRef);
|
||||
}
|
||||
|
||||
TEST_F(clRetainReleaseDeviceTests, release) {
|
||||
TEST_F(clRetainReleaseDeviceTests, GivenRootDeviceWhenReleasingThenReferenceCountIsOne) {
|
||||
cl_uint numEntries = 1;
|
||||
cl_device_id devices[1];
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ using namespace NEO;
|
||||
typedef api_tests clRetainReleaseSamplerTests;
|
||||
|
||||
namespace ULT {
|
||||
TEST_F(clRetainReleaseSamplerTests, RetainRelease) {
|
||||
TEST_F(clRetainReleaseSamplerTests, GivenValidSamplerWhenRetainingThenSamplerReferenceCountIsIncremented) {
|
||||
cl_int retVal = CL_SUCCESS;
|
||||
auto sampler = clCreateSampler(pContext, CL_TRUE, CL_ADDRESS_CLAMP,
|
||||
CL_FILTER_NEAREST, &retVal);
|
||||
|
||||
Reference in New Issue
Block a user