This changes some tests to use "require skip_opencl_tests".
---
gdb/testsuite/gdb.opencl/callfuncs.exp | 5 +----
gdb/testsuite/gdb.opencl/convs_casts.exp | 5 +----
gdb/testsuite/gdb.opencl/datatypes.exp | 5 +----
gdb/testsuite/gdb.opencl/operators.exp | 5 +----
gdb/testsuite/gdb.opencl/vec_comps.exp | 5 +----
5 files changed, 5 insertions(+), 20 deletions(-)
@@ -19,10 +19,7 @@
load_lib opencl.exp
-if { [skip_opencl_tests] } {
- unsupported "OpenCL support not detected"
- return 0
-}
+require !skip_opencl_tests
set testfile "callfuncs"
set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]
@@ -19,10 +19,7 @@
load_lib opencl.exp
-if { [skip_opencl_tests] } {
- unsupported "OpenCL support not detected"
- return 0
-}
+require !skip_opencl_tests
set testfile "convs_casts"
set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]
@@ -19,10 +19,7 @@
load_lib opencl.exp
-if { [skip_opencl_tests] } {
- unsupported "OpenCL support not detected"
- return 0
-}
+require !skip_opencl_tests
set testfile "datatypes"
set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]
@@ -19,10 +19,7 @@
load_lib opencl.exp
-if { [skip_opencl_tests] } {
- unsupported "OpenCL support not detected"
- return 0
-}
+require !skip_opencl_tests
set testfile "operators"
set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]
@@ -19,10 +19,7 @@
load_lib opencl.exp
-if { [skip_opencl_tests] } {
- unsupported "OpenCL support not detected"
- return 0
-}
+require !skip_opencl_tests
set testfile "vec_comps"
set clprogram [remote_download target ${srcdir}/${subdir}/${testfile}.cl]