summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2020-04-20 17:00:47 +0100
committerGary Benson <gbenson@redhat.com>2020-04-20 17:00:47 +0100
commit9b2c992cfa4e9911d3b54c21ced179aa4928c422 (patch)
treea9087fd0ad07220ef9bee212696bb675dd516805
parentb5d1d6f7b70a0086a915c0d04c28a4db91161057 (diff)
downloadbinutils-gdb-9b2c992cfa4e9911d3b54c21ced179aa4928c422.tar.gz
Use support_nested_function_tests in gdb.base/nested-subp1.exp et al
This commit updates gdb.base/nested-subp[1-3].exp to determine whether whether nested functions are supported using the function support_nested_function_tests. gdb/testsuite/ChangeLog: * gdb.base/nested-subp1.exp: Use support_nested_function_tests. * 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.exp3
-rw-r--r--gdb/testsuite/gdb.base/nested-subp2.exp3
-rw-r--r--gdb/testsuite/gdb.base/nested-subp3.exp3
4 files changed, 9 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index cce1d03c8fc..eee1fa375a8 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: Use support_nested_function_tests.
+ * gdb.base/nested-subp2.exp: Likewise.
+ * gdb.base/nested-subp3.exp: Likewise.
+
+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.
diff --git a/gdb/testsuite/gdb.base/nested-subp1.exp b/gdb/testsuite/gdb.base/nested-subp1.exp
index 3d463256f99..efa1616513e 100644
--- a/gdb/testsuite/gdb.base/nested-subp1.exp
+++ b/gdb/testsuite/gdb.base/nested-subp1.exp
@@ -24,8 +24,7 @@ standard_testfile
set testcase "nested-subp1"
-get_compiler_info
-if { [test_compiler_info "clang-*"] } {
+if ![support_nested_function_tests] {
untested "compiler does not support nested functions"
return -1
}
diff --git a/gdb/testsuite/gdb.base/nested-subp2.exp b/gdb/testsuite/gdb.base/nested-subp2.exp
index 6976f3315a2..dd574f2ef73 100644
--- a/gdb/testsuite/gdb.base/nested-subp2.exp
+++ b/gdb/testsuite/gdb.base/nested-subp2.exp
@@ -24,8 +24,7 @@ standard_testfile
set testcase "nested-subp2"
-get_compiler_info
-if { [test_compiler_info "clang-*"] } {
+if ![support_nested_function_tests] {
untested "compiler does not support nested functions"
return -1
}
diff --git a/gdb/testsuite/gdb.base/nested-subp3.exp b/gdb/testsuite/gdb.base/nested-subp3.exp
index 37bbfcaf992..74040efa8ad 100644
--- a/gdb/testsuite/gdb.base/nested-subp3.exp
+++ b/gdb/testsuite/gdb.base/nested-subp3.exp
@@ -24,8 +24,7 @@ standard_testfile
set testcase "nested-subp3"
-get_compiler_info
-if { [test_compiler_info "clang-*"] } {
+if ![support_nested_function_tests] {
untested "compiler does not support nested functions"
return -1
}