From: Gary Benson Date: Fri, 15 May 2020 13:25:32 +0000 (+0100) Subject: Don't silently skip tests if OpenCL is unsupported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=163df4df08aa7b0dda75261c19832c8e66b2059c;p=binutils-gdb.git Don't silently skip tests if OpenCL is unsupported 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 30a150d782c..3702032fb68 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2020-05-15 Gary Benson + + * 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 * gdb.base/align.exp.in: Rename to ... diff --git a/gdb/testsuite/gdb.opencl/callfuncs.exp b/gdb/testsuite/gdb.opencl/callfuncs.exp index 9e771423df5..cf418d16582 100644 --- a/gdb/testsuite/gdb.opencl/callfuncs.exp +++ b/gdb/testsuite/gdb.opencl/callfuncs.exp @@ -20,6 +20,7 @@ load_lib opencl.exp if { [skip_opencl_tests] } { + unsupported "OpenCL support not detected" return 0 } diff --git a/gdb/testsuite/gdb.opencl/convs_casts.exp b/gdb/testsuite/gdb.opencl/convs_casts.exp index 60da5477105..284e24e1658 100644 --- a/gdb/testsuite/gdb.opencl/convs_casts.exp +++ b/gdb/testsuite/gdb.opencl/convs_casts.exp @@ -20,6 +20,7 @@ load_lib opencl.exp if { [skip_opencl_tests] } { + unsupported "OpenCL support not detected" return 0 } diff --git a/gdb/testsuite/gdb.opencl/datatypes.exp b/gdb/testsuite/gdb.opencl/datatypes.exp index df23acb6af4..a874473670c 100644 --- a/gdb/testsuite/gdb.opencl/datatypes.exp +++ b/gdb/testsuite/gdb.opencl/datatypes.exp @@ -20,6 +20,7 @@ load_lib opencl.exp if { [skip_opencl_tests] } { + unsupported "OpenCL support not detected" return 0 } diff --git a/gdb/testsuite/gdb.opencl/operators.exp b/gdb/testsuite/gdb.opencl/operators.exp index 393e58f5fae..af44d8687c1 100644 --- a/gdb/testsuite/gdb.opencl/operators.exp +++ b/gdb/testsuite/gdb.opencl/operators.exp @@ -20,6 +20,7 @@ load_lib opencl.exp if { [skip_opencl_tests] } { + unsupported "OpenCL support not detected" return 0 } diff --git a/gdb/testsuite/gdb.opencl/vec_comps.exp b/gdb/testsuite/gdb.opencl/vec_comps.exp index 0c7ac63f830..67d198e6f81 100644 --- a/gdb/testsuite/gdb.opencl/vec_comps.exp +++ b/gdb/testsuite/gdb.opencl/vec_comps.exp @@ -20,6 +20,7 @@ load_lib opencl.exp if { [skip_opencl_tests] } { + unsupported "OpenCL support not detected" return 0 }