@@ -224,6 +224,14 @@ TEST_P(TestDPCTLSyclPlatformInterface, ChkCopyNullArg)
224
224
EXPECT_NO_FATAL_FAILURE (DPCTLPlatform_Delete (Copied_PRef));
225
225
}
226
226
227
+ TEST_P (TestDPCTLSyclPlatformInterface, ChkGetInfo)
228
+ {
229
+ const char *info_str = nullptr ;
230
+ EXPECT_NO_FATAL_FAILURE (info_str = DPCTLPlatformMgr_GetInfo (PRef, 0 ));
231
+ ASSERT_TRUE (info_str != nullptr );
232
+ EXPECT_NO_FATAL_FAILURE (DPCTLCString_Delete (info_str));
233
+ }
234
+
227
235
TEST_P (TestDPCTLSyclPlatformInterface, ChkPrintInfo)
228
236
{
229
237
EXPECT_NO_FATAL_FAILURE (DPCTLPlatformMgr_PrintInfo (PRef, 0 ));
@@ -255,6 +263,38 @@ TEST_F(TestDPCTLSyclDefaultPlatform, ChkGetBackend)
255
263
check_platform_backend (PRef);
256
264
}
257
265
266
+ TEST_P (TestDPCTLSyclDefaultPlatform, ChkGetInfo0)
267
+ {
268
+ const char *info_str = nullptr ;
269
+ EXPECT_NO_FATAL_FAILURE (info_str = DPCTLPlatformMgr_GetInfo (PRef, 0 ));
270
+ ASSERT_TRUE (info_str != nullptr );
271
+ EXPECT_NO_FATAL_FAILURE (DPCTLCString_Delete (info_str));
272
+ }
273
+
274
+ TEST_P (TestDPCTLSyclDefaultPlatform, ChkGetInfo1)
275
+ {
276
+ const char *info_str = nullptr ;
277
+ EXPECT_NO_FATAL_FAILURE (info_str = DPCTLPlatformMgr_GetInfo (PRef, 1 ));
278
+ ASSERT_TRUE (info_str != nullptr );
279
+ EXPECT_NO_FATAL_FAILURE (DPCTLCString_Delete (info_str));
280
+ }
281
+
282
+ TEST_P (TestDPCTLSyclDefaultPlatform, ChkGetInfo2)
283
+ {
284
+ const char *info_str = nullptr ;
285
+ EXPECT_NO_FATAL_FAILURE (info_str = DPCTLPlatformMgr_GetInfo (PRef, 2 ));
286
+ ASSERT_TRUE (info_str != nullptr );
287
+ EXPECT_NO_FATAL_FAILURE (DPCTLCString_Delete (info_str));
288
+ }
289
+
290
+ TEST_P (TestDPCTLSyclDefaultPlatform, ChkGetInfo3)
291
+ {
292
+ const char *info_str = nullptr ;
293
+ EXPECT_NO_FATAL_FAILURE (info_str = DPCTLPlatformMgr_GetInfo (PRef, 3 ));
294
+ ASSERT_TRUE (info_str != nullptr );
295
+ EXPECT_NO_FATAL_FAILURE (DPCTLCString_Delete (info_str));
296
+ }
297
+
258
298
TEST_F (TestDPCTLSyclDefaultPlatform, ChkPrintInfo0)
259
299
{
260
300
EXPECT_NO_FATAL_FAILURE (DPCTLPlatformMgr_PrintInfo (PRef, 0 ));
0 commit comments