diff --git a/sycl/test/basic_tests/swizzle_op.cpp b/sycl/test/basic_tests/swizzle_op.cpp index 1e92462272208..c133c29c9aa8f 100644 --- a/sycl/test/basic_tests/swizzle_op.cpp +++ b/sycl/test/basic_tests/swizzle_op.cpp @@ -1,8 +1,8 @@ -// RUN: %clang -std=c++11 -fsycl %s -o %t.out -lstdc++ -lOpenCL -lsycl +// RUN: %clang -std=c++11 -fsycl %s -o %t.out -lstdc++ -lOpenCL // RUN: env SYCL_DEVICE_TYPE=HOST %t.out -// RUNx: %CPU_RUN_PLACEHOLDER %t.out -// RUNx: %GPU_RUN_PLACEHOLDER %t.out -// RUNx: %ACC_RUN_PLACEHOLDER %t.out +// RUN: %CPU_RUN_PLACEHOLDER %t.out +// RUN: %GPU_RUN_PLACEHOLDER %t.out +// RUN: %ACC_RUN_PLACEHOLDER %t.out //==------------ swizzle_op.cpp - SYCL SwizzleOp basic test ----------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. diff --git a/sycl/test/functor/kernel_functor.cpp b/sycl/test/functor/kernel_functor.cpp index 13680964326b9..44d66b0baa418 100644 --- a/sycl/test/functor/kernel_functor.cpp +++ b/sycl/test/functor/kernel_functor.cpp @@ -1,9 +1,8 @@ -// RUN: %clang -fsycl -o %t.out %s -lstdc++ -lOpenCL -lsycl +// RUN: %clang -fsycl -o %t.out %s -lstdc++ -lOpenCL // RUN: cd %T -// RUN: env SYCL_DEVICE_TYPE=HOST %t.out | FileCheck %s -// RUNx: %CPU_RUN_PLACEHOLDER %t.out -// RUNx: %GPU_RUN_PLACEHOLDER %t.out -// CHECK:Passed. +// RUN: env SYCL_DEVICE_TYPE=HOST %t.out +// RUN: %CPU_RUN_PLACEHOLDER %t.out +// RUN: %GPU_RUN_PLACEHOLDER %t.out //==--- kernel_functor.cpp - Functors as SYCL kernel test ------------------==// // @@ -14,7 +13,8 @@ //===----------------------------------------------------------------------===// #include -#include + +#include constexpr auto sycl_read_write = cl::sycl::access::mode::read_write; constexpr auto sycl_global_buffer = cl::sycl::access::target::global_buffer; @@ -172,14 +172,8 @@ int main() { const int Gold1 = 40; const int Gold2 = 80; - if (Res1 != Gold1) { - std::cout << "FAILED. " << Res1 << "!=" << Gold1 << "\n"; - return 1; - } - if (Res2 != Gold2) { - std::cout << "FAILED. " << Res2 << "!=" << Gold2 << "\n"; - return 1; - } - std::cout << "Passed.\n"; + assert(Res1 == Gold1); + assert(Res2 == Gold2); + return 0; }