Use support_nested_function_tests in gdb.base/nested-subp1.exp et al
authorGary Benson <gbenson@redhat.com>
Mon, 20 Apr 2020 16:00:47 +0000 (17:00 +0100)
committerGary Benson <gbenson@redhat.com>
Mon, 20 Apr 2020 16:00:47 +0000 (17:00 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/nested-subp1.exp
gdb/testsuite/gdb.base/nested-subp2.exp
gdb/testsuite/gdb.base/nested-subp3.exp

index cce1d03c8fcf0b15a38e0c45971e98f4e75e3bfd..eee1fa375a8ae8959f5a0e84639a4235875937a9 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 3d463256f9900d3d9564af0dc90ee7e8c448b2a3..efa1616513e607bb51851181ca07f4ec57609d12 100644 (file)
@@ -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
 }
index 6976f3315a25f71e18a9a94613690997f153e9a4..dd574f2ef7322fb2f4e2c57e1f01535308fea662 100644 (file)
@@ -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
 }
index 37bbfcaf992ef4218b47075f461afe7188d978eb..74040efa8ad161f0973de2924442d6fa782a4d71 100644 (file)
@@ -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
 }