From: Gary Benson Date: Mon, 20 Apr 2020 14:49:09 +0000 (+0100) Subject: Disable nested function tests for clang X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5d1d6f7b70a0086a915c0d04c28a4db91161057;p=binutils-gdb.git Disable nested function tests for clang Clang does not support nested functions, and there are no plans to change this. This commit disables the three nested function tests when using clang. gdb/testsuite/ChangeLog: * gdb.base/nested-subp1.exp: Disable test when using clang. * gdb.base/nested-subp2.exp: Likewise. * gdb.base/nested-subp3.exp: Likewise. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8246424cc6b..cce1d03c8fc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-04-20 Gary Benson + + * gdb.base/nested-subp1.exp: Disable test when using clang. + * gdb.base/nested-subp2.exp: Likewise. + * gdb.base/nested-subp3.exp: Likewise. + 2020-04-20 Gary Benson * gdb.cp/exception.cc: Fix compilation error with clang. diff --git a/gdb/testsuite/gdb.base/nested-subp1.exp b/gdb/testsuite/gdb.base/nested-subp1.exp index c733af5811f..3d463256f99 100644 --- a/gdb/testsuite/gdb.base/nested-subp1.exp +++ b/gdb/testsuite/gdb.base/nested-subp1.exp @@ -24,6 +24,12 @@ standard_testfile set testcase "nested-subp1" +get_compiler_info +if { [test_compiler_info "clang-*"] } { + untested "compiler does not support nested functions" + return -1 +} + if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \ [standard_output_file "${testcase}"] \ executable \ diff --git a/gdb/testsuite/gdb.base/nested-subp2.exp b/gdb/testsuite/gdb.base/nested-subp2.exp index cd041ec35be..6976f3315a2 100644 --- a/gdb/testsuite/gdb.base/nested-subp2.exp +++ b/gdb/testsuite/gdb.base/nested-subp2.exp @@ -24,6 +24,12 @@ standard_testfile set testcase "nested-subp2" +get_compiler_info +if { [test_compiler_info "clang-*"] } { + untested "compiler does not support nested functions" + return -1 +} + if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \ [standard_output_file "${testcase}"] \ executable \ diff --git a/gdb/testsuite/gdb.base/nested-subp3.exp b/gdb/testsuite/gdb.base/nested-subp3.exp index 5d2e1ecd5b9..37bbfcaf992 100644 --- a/gdb/testsuite/gdb.base/nested-subp3.exp +++ b/gdb/testsuite/gdb.base/nested-subp3.exp @@ -24,6 +24,12 @@ standard_testfile set testcase "nested-subp3" +get_compiler_info +if { [test_compiler_info "clang-*"] } { + untested "compiler does not support nested functions" + return -1 +} + if { [gdb_compile "${srcdir}/${subdir}/${testcase}.c" \ [standard_output_file "${testcase}"] \ executable \