diff --git a/sycl/unittests/helpers/PiMock.hpp b/sycl/unittests/helpers/PiMock.hpp index 90319b0dcc10e..b8d27edd6fb09 100644 --- a/sycl/unittests/helpers/PiMock.hpp +++ b/sycl/unittests/helpers/PiMock.hpp @@ -66,7 +66,7 @@ namespace RT = detail::pi; /// redefinitions would also affect other platforms' behavior. /// Therefore, any plugin-related information is fully copied whenever /// a user-passed SYCL object instance is being mocked. -/// The underlying SYCL platform must be a non-host plaftorm to facilitate +/// The underlying SYCL platform must be a non-host platform to facilitate /// plugin usage. /// /// Simple usage examples would look like this: diff --git a/sycl/unittests/program_manager/EliminatedArgMask.cpp b/sycl/unittests/program_manager/EliminatedArgMask.cpp index db7f380e1e31c..c5c3bfe4c2c61 100644 --- a/sycl/unittests/program_manager/EliminatedArgMask.cpp +++ b/sycl/unittests/program_manager/EliminatedArgMask.cpp @@ -191,15 +191,11 @@ sycl::detail::ProgramManager::KernelArgMask getKernelArgMaskFromBundle( // kernel bundle after two kernels are compiled and linked. TEST(EliminatedArgMask, KernelBundleWith2Kernels) { sycl::platform Plt{sycl::default_selector()}; - if (Plt.is_host()) { - std::cerr << "Test is not supported on host, skipping\n"; - return; // test is not supported on host. - } else if (Plt.get_backend() == sycl::backend::ext_oneapi_cuda) { - std::cerr << "Test is not supported on CUDA platform, skipping\n"; - return; - } else if (Plt.get_backend() == sycl::backend::ext_oneapi_hip) { - std::cout << "Test is not supported on HIP platform, skipping\n"; - return; + if (Plt.is_host() || Plt.get_backend() == sycl::backend::ext_oneapi_cuda || + Plt.get_backend() == sycl::backend::ext_oneapi_hip) { + std::cerr << "Test is not supported on " + << Plt.get_info() << ", skipping\n"; + GTEST_SKIP(); // test is not supported on selected platform. } sycl::unittest::PiMock Mock{Plt};