2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2025-05-07 11:03:46 +00:00
|
|
|
* Copyright (C) 2018-2025 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "cl_api_tests.h"
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
using namespace NEO;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2023-04-24 17:17:08 +00:00
|
|
|
using ClSVMFreeTests = ApiTests;
|
2017-12-21 00:45:38 +01:00
|
|
|
|
|
|
|
|
namespace ULT {
|
|
|
|
|
|
2023-04-24 17:17:08 +00:00
|
|
|
TEST_F(ClSVMFreeTests, GivenNullPtrWhenFreeingSvmThenNoAction) {
|
2017-12-21 00:45:38 +01:00
|
|
|
clSVMFree(
|
|
|
|
|
nullptr, // cl_context context
|
|
|
|
|
nullptr // void *svm_pointer
|
2018-06-12 21:54:39 +02:00
|
|
|
);
|
2017-12-21 00:45:38 +01:00
|
|
|
}
|
2020-03-04 15:44:33 +01:00
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
} // namespace ULT
|