@@ -269,9 +269,9 @@ TEST(ParseAllowListTests, CheckExceptionIsThrownForValueWOColonDelim) {
269269}
270270
271271TEST (ParseAllowListTests, CheckDeviceNameDeprecationWarning) {
272- testing::internal::CaptureStderr ();
272+ testing::internal::CaptureStdout ();
273273 sycl::detail::parseAllowList (" DeviceName:{{regex}}" );
274- std::string ActualOutput = testing::internal::GetCapturedStderr ();
274+ std::string ActualOutput = testing::internal::GetCapturedStdout ();
275275 EXPECT_EQ (" \n WARNING: DeviceName in SYCL_DEVICE_ALLOWLIST is deprecated. "
276276 " Please use BackendName, DeviceType and DeviceVendorId instead. "
277277 " For details, please refer to "
@@ -281,9 +281,9 @@ TEST(ParseAllowListTests, CheckDeviceNameDeprecationWarning) {
281281}
282282
283283TEST (ParseAllowListTests, CheckPlatformNameDeprecationWarning) {
284- testing::internal::CaptureStderr ();
284+ testing::internal::CaptureStdout ();
285285 sycl::detail::parseAllowList (" PlatformName:{{regex}}" );
286- std::string ActualOutput = testing::internal::GetCapturedStderr ();
286+ std::string ActualOutput = testing::internal::GetCapturedStdout ();
287287 EXPECT_EQ (" \n WARNING: PlatformName in SYCL_DEVICE_ALLOWLIST is deprecated. "
288288 " Please use BackendName, DeviceType and DeviceVendorId instead. "
289289 " For details, please refer to "
@@ -293,9 +293,9 @@ TEST(ParseAllowListTests, CheckPlatformNameDeprecationWarning) {
293293}
294294
295295TEST (ParseAllowListTests, CheckDeviceNameAndPlatformNameDeprecationWarning) {
296- testing::internal::CaptureStderr ();
296+ testing::internal::CaptureStdout ();
297297 sycl::detail::parseAllowList (" DeviceName:{{regex}},PlatformName:{{regex}}" );
298- std::string ActualOutput = testing::internal::GetCapturedStderr ();
298+ std::string ActualOutput = testing::internal::GetCapturedStdout ();
299299 EXPECT_EQ (" \n WARNING: DeviceName and PlatformName in SYCL_DEVICE_ALLOWLIST "
300300 " are deprecated. Please use BackendName, DeviceType and "
301301 " DeviceVendorId instead. For details, please refer to "
@@ -305,10 +305,10 @@ TEST(ParseAllowListTests, CheckDeviceNameAndPlatformNameDeprecationWarning) {
305305}
306306
307307TEST (ParseAllowListTests, CheckNoDeprecationWarningForNotDeprecatedKeys) {
308- testing::internal::CaptureStderr ();
308+ testing::internal::CaptureStdout ();
309309 sycl::detail::parseAllowList (
310310 " BackendName:level_zero,DeviceType:gpu,DeviceVendorId:0x0000,"
311311 " DriverVersion:{{regex1}},PlatformVersion:{{regex2}}" );
312- std::string ActualOutput = testing::internal::GetCapturedStderr ();
312+ std::string ActualOutput = testing::internal::GetCapturedStdout ();
313313 EXPECT_EQ (" " , ActualOutput);
314314}
0 commit comments