Don't silently skip tests if OpenCL is unsupported
authorGary Benson <gbenson@redhat.com>
Fri, 15 May 2020 13:25:32 +0000 (14:25 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 15 May 2020 13:25:32 +0000 (14:25 +0100)
A number of tests silently exit if OpenCL support is not detected.
This commit fixes.

gdb/testsuite/ChangeLog:

* gdb.opencl/callfuncs.exp: Report when test skipped.
* gdb.opencl/convs_casts.exp: Likewise.
* gdb.opencl/datatypes.exp: Likewise.
* gdb.opencl/operators.exp: Likewise.
* gdb.opencl/vec_comps.exp: Likewise.

gdb/testsuite/ChangeLog
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 30a150d782ce48ca79b90e73ae5cefb4c1722312..3702032fb68f98483d685ab1f4c1d6ac99a755af 100644 (file)
@@ -1,3 +1,11 @@
+2020-05-15  Gary Benson <gbenson@redhat.com>
+
+       * gdb.opencl/callfuncs.exp: Report when test skipped.
+       * gdb.opencl/convs_casts.exp: Likewise.
+       * gdb.opencl/datatypes.exp: Likewise.
+       * gdb.opencl/operators.exp: Likewise.
+       * gdb.opencl/vec_comps.exp: Likewise.
+
 2020-05-15  Tom de Vries  <tdevries@suse.de>
 
        * gdb.base/align.exp.in: Rename to ...
index 9e771423df597eb99047f7d4c2f85889afd00f7d..cf418d1658221d80410218199e091d6204ec7174 100644 (file)
@@ -20,6 +20,7 @@
 load_lib opencl.exp
 
 if { [skip_opencl_tests] } {
+    unsupported "OpenCL support not detected"
     return 0
 }
 
index 60da54771051c2d7d1daf84134de6b101c6380fc..284e24e16580791a9b8e7d56c4c070b6606064a1 100644 (file)
@@ -20,6 +20,7 @@
 load_lib opencl.exp
 
 if { [skip_opencl_tests] } {
+    unsupported "OpenCL support not detected"
     return 0
 }
 
index df23acb6af40397aad03d0bafe4b6feb7c3de91a..a874473670c46ed7b97ed0d4c4c543ac63ff7e94 100644 (file)
@@ -20,6 +20,7 @@
 load_lib opencl.exp
 
 if { [skip_opencl_tests] } {
+    unsupported "OpenCL support not detected"
     return 0
 }
 
index 393e58f5fae2a74ad413701f831cacc6efe599db..af44d8687c1917376b153648a584ee10688d921a 100644 (file)
@@ -20,6 +20,7 @@
 load_lib opencl.exp
 
 if { [skip_opencl_tests] } {
+    unsupported "OpenCL support not detected"
     return 0
 }
 
index 0c7ac63f830fb46f60b22da44b5a07bd9f2fc4dd..67d198e6f8189a7aee5e4f9abee81f373e7bc10d 100644 (file)
@@ -20,6 +20,7 @@
 load_lib opencl.exp
 
 if { [skip_opencl_tests] } {
+    unsupported "OpenCL support not detected"
     return 0
 }