aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2020-04-20 15:49:09 +0100
committerGary Benson <gbenson@redhat.com>2020-04-20 15:49:09 +0100
commitb5d1d6f7b70a0086a915c0d04c28a4db91161057 (patch)
tree827ebfca3717909492f4246082dc8f6cb24c2322
parentad23bda0db2b2bee506147701424b2ebfef8f55a (diff)
downloadgdb-b5d1d6f7b70a0086a915c0d04c28a4db91161057.zip
gdb-b5d1d6f7b70a0086a915c0d04c28a4db91161057.tar.gz
gdb-b5d1d6f7b70a0086a915c0d04c28a4db91161057.tar.bz2
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.
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.base/nested-subp1.exp6
-rw-r--r--gdb/testsuite/gdb.base/nested-subp2.exp6
-rw-r--r--gdb/testsuite/gdb.base/nested-subp3.exp6
4 files changed, 24 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8246424..cce1d03 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,11 @@
2020-04-20 Gary Benson <gbenson@redhat.com>
+ * 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 <gbenson@redhat.com>
+
* gdb.cp/exception.cc: Fix compilation error with clang.
2020-04-20 Gary Benson <gbenson@redhat.com>
diff --git a/gdb/testsuite/gdb.base/nested-subp1.exp b/gdb/testsuite/gdb.base/nested-subp1.exp
index c733af5..3d46325 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 cd041ec..6976f33 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 5d2e1ec..37bbfca 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 \