@@ -269,9 +269,9 @@ TEST(ParseAllowListTests, CheckExceptionIsThrownForValueWOColonDelim) {
269
269
}
270
270
271
271
TEST (ParseAllowListTests, CheckDeviceNameDeprecationWarning) {
272
- testing::internal::CaptureStderr ();
272
+ testing::internal::CaptureStdout ();
273
273
sycl::detail::parseAllowList (" DeviceName:{{regex}}" );
274
- std::string ActualOutput = testing::internal::GetCapturedStderr ();
274
+ std::string ActualOutput = testing::internal::GetCapturedStdout ();
275
275
EXPECT_EQ (" \n WARNING: DeviceName in SYCL_DEVICE_ALLOWLIST is deprecated. "
276
276
" Please use BackendName, DeviceType and DeviceVendorId instead. "
277
277
" For details, please refer to "
@@ -281,9 +281,9 @@ TEST(ParseAllowListTests, CheckDeviceNameDeprecationWarning) {
281
281
}
282
282
283
283
TEST (ParseAllowListTests, CheckPlatformNameDeprecationWarning) {
284
- testing::internal::CaptureStderr ();
284
+ testing::internal::CaptureStdout ();
285
285
sycl::detail::parseAllowList (" PlatformName:{{regex}}" );
286
- std::string ActualOutput = testing::internal::GetCapturedStderr ();
286
+ std::string ActualOutput = testing::internal::GetCapturedStdout ();
287
287
EXPECT_EQ (" \n WARNING: PlatformName in SYCL_DEVICE_ALLOWLIST is deprecated. "
288
288
" Please use BackendName, DeviceType and DeviceVendorId instead. "
289
289
" For details, please refer to "
@@ -293,9 +293,9 @@ TEST(ParseAllowListTests, CheckPlatformNameDeprecationWarning) {
293
293
}
294
294
295
295
TEST (ParseAllowListTests, CheckDeviceNameAndPlatformNameDeprecationWarning) {
296
- testing::internal::CaptureStderr ();
296
+ testing::internal::CaptureStdout ();
297
297
sycl::detail::parseAllowList (" DeviceName:{{regex}},PlatformName:{{regex}}" );
298
- std::string ActualOutput = testing::internal::GetCapturedStderr ();
298
+ std::string ActualOutput = testing::internal::GetCapturedStdout ();
299
299
EXPECT_EQ (" \n WARNING: DeviceName and PlatformName in SYCL_DEVICE_ALLOWLIST "
300
300
" are deprecated. Please use BackendName, DeviceType and "
301
301
" DeviceVendorId instead. For details, please refer to "
@@ -305,10 +305,10 @@ TEST(ParseAllowListTests, CheckDeviceNameAndPlatformNameDeprecationWarning) {
305
305
}
306
306
307
307
TEST (ParseAllowListTests, CheckNoDeprecationWarningForNotDeprecatedKeys) {
308
- testing::internal::CaptureStderr ();
308
+ testing::internal::CaptureStdout ();
309
309
sycl::detail::parseAllowList (
310
310
" BackendName:level_zero,DeviceType:gpu,DeviceVendorId:0x0000,"
311
311
" DriverVersion:{{regex1}},PlatformVersion:{{regex2}}" );
312
- std::string ActualOutput = testing::internal::GetCapturedStderr ();
312
+ std::string ActualOutput = testing::internal::GetCapturedStdout ();
313
313
EXPECT_EQ (" " , ActualOutput);
314
314
}
0 commit comments