mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +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
@@ -24,6 +24,7 @@ void ProgramWithZebinFixture::TearDown() {
|
||||
program->setGlobalSurface(nullptr);
|
||||
program->setConstantSurface(nullptr);
|
||||
program->getKernelInfoArray(rootDeviceIndex).clear();
|
||||
program.reset();
|
||||
ProgramTests::TearDown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user