2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-03-26 18:59:46 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "cl_api_tests.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
typedef api_tests clSVMFreeTests;
|
|
|
|
|
|
|
|
namespace ULT {
|
|
|
|
|
2019-08-07 02:11:28 +08:00
|
|
|
TEST_F(clSVMFreeTests, GivenNullPtrWhenFreeingSvmThenNoAction) {
|
2017-12-21 07:45:38 +08:00
|
|
|
clSVMFree(
|
|
|
|
nullptr, // cl_context context
|
|
|
|
nullptr // void *svm_pointer
|
2018-06-13 03:54:39 +08:00
|
|
|
);
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
} // namespace ULT
|