mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 00:03:14 +08:00
Initialize execution environment before creating platform
Related-To: NEO-4208 Change-Id: I3a242bfcc149aad01966693f99fbfc51ba71483d Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
9a4d515d3f
commit
33c1a16f2f
@@ -36,6 +36,7 @@
|
||||
#include "unit_tests/libult/ult_command_stream_receiver.h"
|
||||
#include "unit_tests/mocks/mock_graphics_allocation.h"
|
||||
#include "unit_tests/mocks/mock_kernel.h"
|
||||
#include "unit_tests/mocks/mock_platform.h"
|
||||
#include "unit_tests/mocks/mock_program.h"
|
||||
#include "unit_tests/program/program_from_binary.h"
|
||||
#include "unit_tests/program/program_with_source.h"
|
||||
@@ -2443,7 +2444,7 @@ TEST(SimpleProgramTests, givenDefaultProgramWhenSetDeviceIsCalledThenDeviceIsSet
|
||||
}
|
||||
|
||||
TEST(ProgramDestructionTests, givenProgramUsingDeviceWhenItIsDestroyedAfterPlatfromCleanupThenItIsCleanedUpProperly) {
|
||||
platform()->initialize();
|
||||
initPlatform();
|
||||
auto device = platform()->getClDevice(0);
|
||||
MockContext *context = new MockContext(device, false);
|
||||
MockProgram *pProgram = new MockProgram(*device->getExecutionEnvironment(), context, false);
|
||||
|
||||
Reference in New Issue
Block a user