Skip complex types tests if gdb_skip_float_test
authorYao Qi <yao.qi@linaro.org>
Wed, 5 Oct 2016 16:04:31 +0000 (17:04 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 5 Oct 2016 16:04:31 +0000 (17:04 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp

index d4ae9dfd2b673a51a0abb475b17bed3586292066..537ca8c15e63926037e330dc3692fe88733036a2 100644 (file)
@@ -1,3 +1,8 @@
+2016-10-05  Yao Qi  <yao.qi@linaro.org>
+
+       * lib/gdb.exp (support_complex_tests): Return zero if
+       gdb_skip_float_test return true.
+
 2016-10-03  Antoine Tremblay  <antoine.tremblay@ericsson.com>
 2016-10-03  Simon Marchi  <simon.marchi@ericsson.com>
 
index 758db46d565927e11d63f25b03672a8539889ac6..1230e77909c0dc882d736ebbe5b9f8886acbfec1 100644 (file)
@@ -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.
This page took 0.034856 seconds and 4 git commands to generate.