mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
test: fix cleanup order in ULTs
- program using device must be released before device is destroyed. Reset program unique_ptr in fixtures before device fixture tearDown() - reorder fixtures members to ensure correct order of destructors Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
35ef2f760b
commit
c28f0c72ea
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -38,9 +38,9 @@ class KernelArgInfoFixture {
|
||||
}
|
||||
|
||||
KernelInfo kernelInfo;
|
||||
std::unique_ptr<MockClDevice> clDevice;
|
||||
std::unique_ptr<MockProgram> program;
|
||||
std::unique_ptr<MockKernel> kernel;
|
||||
std::unique_ptr<MockClDevice> clDevice;
|
||||
KernelDescriptor *kernelDescriptor;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user