mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Fail AUB tests execution if AUB file cannot be created
Change-Id: Id0474cc5c00be90e69d498ec5674089086a82350 Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "runtime/helpers/options.h"
|
||||
#include "runtime/platform/extensions.h"
|
||||
#include "runtime/sharings/sharing_factory.h"
|
||||
#include "unit_tests/fixtures/mock_aub_center_fixture.h"
|
||||
#include "unit_tests/fixtures/platform_fixture.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
#include "unit_tests/helpers/variable_backup.h"
|
||||
@@ -36,8 +37,9 @@ struct MockPlatformWithMockExecutionEnvironment : public Platform {
|
||||
|
||||
MockPlatformWithMockExecutionEnvironment() {
|
||||
this->executionEnvironment->decRefInternal();
|
||||
mockExecutionEnvironment = new MockExecutionEnvironment;
|
||||
mockExecutionEnvironment = new MockExecutionEnvironment(nullptr, false);
|
||||
executionEnvironment = mockExecutionEnvironment;
|
||||
MockAubCenterFixture::setMockAubCenter(executionEnvironment);
|
||||
executionEnvironment->incRefInternal();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user