Skip to content

Commit 9e1888f

Browse files
committed
Improve assertion usage
1 parent 950a0e8 commit 9e1888f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/unittests/kernel-and-program/DeviceInfo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ TEST_F(DeviceInfoTest, BuiltInKernelIDs) {
108108

109109
auto ids = Dev.get_info<info::device::built_in_kernel_ids>();
110110

111-
EXPECT_EQ(ids.size(), 3u);
112-
EXPECT_EQ(ids[0].get_name(), std::string{"Kernel0"});
113-
EXPECT_EQ(ids[1].get_name(), std::string{"Kernel1"});
114-
EXPECT_EQ(ids[2].get_name(), std::string{"Kernel2"});
111+
ASSERT_EQ(ids.size(), 3u);
112+
EXPECT_STREQ(ids[0].get_name(), "Kernel0");
113+
EXPECT_STREQ(ids[1].get_name(), "Kernel1");
114+
EXPECT_STREQ(ids[2].get_name(), "Kernel2");
115115

116116
errc val = errc::success;
117117
std::string msg;

0 commit comments

Comments
 (0)