mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
Move os context tests to os interface tests
Change-Id: I409d988c6c561bca6fc6dcb0ff16583131f0cf5a Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
a807b9a90b
commit
deab9a33cd
@@ -20,6 +20,7 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "runtime/os_interface/os_context.h"
|
||||
#include "runtime/os_interface/os_interface.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
@@ -33,4 +34,10 @@ TEST(OsInterfaceTest, GivenLinuxOsInterfaceWhenDeviceHandleQueriedthenZeroIsRetu
|
||||
OSInterface osInterface;
|
||||
EXPECT_EQ(0u, osInterface.getDeviceHandle());
|
||||
}
|
||||
|
||||
TEST(OsContextTest, WhenOsContextIsCreatedThenImplIsAvailable) {
|
||||
OSInterface osInterface;
|
||||
auto osContext = std::make_unique<OsContext>(osInterface);
|
||||
EXPECT_NE(nullptr, osContext->get());
|
||||
}
|
||||
} // namespace OCLRT
|
||||
Reference in New Issue
Block a user