diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-21 23:02:42 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-01-25 09:02:11 -0700 |
commit | 42abd7386e63a5637e46b0705896e0d86dd4e490 (patch) | |
tree | 4d050130bd3af4d0e2be433373507b7851745bb3 /gdb/testsuite/lib | |
parent | c2b7bed6454a1253564715f7985a6abac5eb4cdc (diff) | |
download | gdb-42abd7386e63a5637e46b0705896e0d86dd4e490.zip gdb-42abd7386e63a5637e46b0705896e0d86dd4e490.tar.gz gdb-42abd7386e63a5637e46b0705896e0d86dd4e490.tar.bz2 |
Rename skip_float_test to allow form
This renames skip_float_test to allow_float_test and updates its users
to use require.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 4346c85..2c53ebe 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3167,7 +3167,7 @@ proc with_read1_timeout_factor { factor body } { gdb_caching_proc support_complex_tests { - if { [gdb_skip_float_test] } { + if { ![allow_float_test] } { # If floating point is not supported, _Complex is not # supported. return 0 @@ -6846,13 +6846,13 @@ proc exec_is_pie { executable } { return 0 } -# Return true if a test should be skipped due to lack of floating +# Return false if a test should be skipped due to lack of floating # point support or GDB can't fetch the contents from floating point # registers. -gdb_caching_proc gdb_skip_float_test { +gdb_caching_proc allow_float_test { if [target_info exists gdb,skip_float_tests] { - return 1 + return 0 } # There is an ARM kernel ptrace bug that hardware VFP registers @@ -6901,13 +6901,13 @@ gdb_caching_proc gdb_skip_float_test { if {![string match "" $lines]} { verbose "testfile compilation failed, returning 1" 2 - return 0 + return 1 } # No error message, compilation succeeded so now run it via gdb. # Run the test up to 5 times to detect whether ptrace can # correctly update VFP registers or not. - set skip_vfp_test 0 + set allow_vfp_test 1 for {set i 0} {$i < 5} {incr i} { global gdb_prompt srcdir subdir @@ -6931,7 +6931,7 @@ gdb_caching_proc gdb_skip_float_test { -re "exited normally.*$gdb_prompt $" { # However, the exit code is 0. That means something # wrong in setting VFP registers. - set skip_vfp_test 1 + set allow_vfp_test 0 break } } @@ -6940,9 +6940,9 @@ gdb_caching_proc gdb_skip_float_test { gdb_exit remote_file build delete $exe - return $skip_vfp_test + return $allow_vfp_test } - return 0 + return 1 } # Print a message and return true if a test should be skipped |