From fdebf1a415f565fc4606f9139d10d1e9393999c0 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 5 Oct 2016 17:04:31 +0100 Subject: [PATCH] Skip complex types tests if gdb_skip_float_test If the target doesn't support float, we don't run float complex types tests. gdb/testsuite: 2016-10-05 Yao Qi * lib/gdb.exp (support_complex_tests): Return zero if gdb_skip_float_test return true. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/lib/gdb.exp | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d4ae9dfd2b..537ca8c15e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-10-05 Yao Qi + + * lib/gdb.exp (support_complex_tests): Return zero if + gdb_skip_float_test return true. + 2016-10-03 Antoine Tremblay 2016-10-03 Simon Marchi diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 758db46d56..1230e77909 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2176,6 +2176,13 @@ proc with_timeout_factor { factor body } { # Return 1 if _Complex types are supported, otherwise, return 0. gdb_caching_proc support_complex_tests { + + if { [gdb_skip_float_test] } { + # If floating point is not supported, _Complex is not + # supported. + return 0 + } + # Set up, compile, and execute a test program containing _Complex types. # Include the current process ID in the file names to prevent conflicts # with invocations for multiple testsuites. -- 2.34.1