summaryrefslogtreecommitdiffstats
path: root/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp')
-rw-r--r--parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp b/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp
index 08f870d00ba..5b16c3c865c 100644
--- a/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp
+++ b/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp
@@ -74,6 +74,10 @@ public:
using llvm::ArrayRef;
using llvm::MutableArrayRef;
+TEST_F(DeviceTest, GetName) {
+ EXPECT_EQ(Device.getName(), "SimpleHostPlatformDevice");
+}
+
TEST_F(DeviceTest, AllocateAndFreeDeviceMemory) {
se::Expected<se::GlobalDeviceMemory<int>> MaybeMemory =
Device.allocateDeviceMemory<int>(10);
OpenPOWER on IntegriCloud