From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2182) id 75C6F384B104; Mon, 20 Apr 2020 14:49:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75C6F384B104 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gary Benson To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Disable nested function tests for clang X-Act-Checkin: binutils-gdb X-Git-Author: Gary Benson X-Git-Refname: refs/heads/master X-Git-Oldrev: ad23bda0db2b2bee506147701424b2ebfef8f55a X-Git-Newrev: b5d1d6f7b70a0086a915c0d04c28a4db91161057 Message-Id: <20200420144924.75C6F384B104@sourceware.org> Date: Mon, 20 Apr 2020 14:49:24 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2020 14:49:24 -0000 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b5d1d6f7b70a0086a915c0d04c28a4db91161057 commit b5d1d6f7b70a0086a915c0d04c28a4db91161057 Author: Gary Benson Date: Mon Apr 20 15:49:09 2020 +0100 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: --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.base/nested-subp1.exp | 6 ++++++ gdb/testsuite/gdb.base/nested-subp2.exp | 6 ++++++ gdb/testsuite/gdb.base/nested-subp3.exp | 6 ++++++ 4 files changed, 24 insertions(+) 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 \