2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2019-03-26 11:59:46 +01:00
|
|
|
* Copyright (C) 2017-2019 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
|
|
|
|
|
|
|
|
typedef api_tests clSVMFreeTests;
|
|
|
|
|
|
|
|
|
|
namespace ULT {
|
|
|
|
|
|
2019-08-06 20:11:28 +02: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
|
|
|
}
|
|
|
|
|
} // namespace ULT
|