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.
This commit is contained in:
Gary Benson
2020-04-20 17:00:47 +01:00
parent b5d1d6f7b7
commit 9b2c992cfa
4 changed files with 9 additions and 6 deletions

View 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.

View 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
}

View 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
}

View 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
}