Use require !skip_opencl_tests
authorTom Tromey <tom@tromey.com>
Thu, 15 Dec 2022 23:45:27 +0000 (16:45 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:56 +0000 (13:18 -0700)
This changes some tests to use "require !skip_opencl_tests".

gdb/testsuite/gdb.opencl/callfuncs.exp
gdb/testsuite/gdb.opencl/convs_casts.exp
gdb/testsuite/gdb.opencl/datatypes.exp
gdb/testsuite/gdb.opencl/operators.exp
gdb/testsuite/gdb.opencl/vec_comps.exp

index f5bd28f66a07851faf18a20689829a240a995c34..98b34ab08cd35bd4deb50cbddff79b8d3091980e 100644 (file)
 
 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]
index adfc298261323da70e01b481994ba7f05b237fd7..9764d75fcb5e4c15537c65919517d03eb2b6b8a3 100644 (file)
 
 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]
index 07558537744001cb3b2507827ccb727e2cbd9953..69d07e7b695796b7c400a39039bcbed60f4cebab 100644 (file)
 
 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]
index fd1bf87482d61106af35443a94c59269dd5ccde5..31a7ee87873682a760253e09c1ee19d2c0e9738d 100644 (file)
 
 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]
index 7eb2e8f92ae03162b2283c5e79e8190b228bd26a..1ea2bd9d7ec8d430aea4332959348aeb2af186a8 100644 (file)
 
 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]