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:
Mateusz Hoppe
2023-02-27 17:32:16 +00:00
committed by Compute-Runtime-Automation
parent 35ef2f760b
commit c28f0c72ea
16 changed files with 29 additions and 11 deletions

View File

@@ -24,6 +24,7 @@ void ProgramWithZebinFixture::TearDown() {
program->setGlobalSurface(nullptr);
program->setConstantSurface(nullptr);
program->getKernelInfoArray(rootDeviceIndex).clear();
program.reset();
ProgramTests::TearDown();
}