diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-10-05 17:04:31 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-10-05 17:04:31 +0100 |
commit | fdebf1a415f565fc4606f9139d10d1e9393999c0 (patch) | |
tree | d793d9025f959cb01a4500342f05633dc5aaa4df /gdb/testsuite/lib | |
parent | dba484926919ac02d1577f22fd47a5d99df99d8d (diff) | |
download | binutils-gdb-fdebf1a415f565fc4606f9139d10d1e9393999c0.tar.gz |
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 <yao.qi@linaro.org>
* lib/gdb.exp (support_complex_tests): Return zero if
gdb_skip_float_test return true.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 758db46d565..1230e77909c 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. |