This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Skip float complex types if gdb_skip_float_test
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 4 Oct 2016 15:34:06 +0100
- Subject: [PATCH] Skip float complex types if gdb_skip_float_test
- Authentication-results: sourceware.org; auth=none
If the target doesn't support float, we don't run float complex types
tests.
gdb/testsuite:
2016-10-04 Yao Qi <yao.qi@linaro.org>
* gdb.base/callfuncs.exp (do_function_calls): Do float
complex tests if $skip_float_test is true.
---
gdb/testsuite/gdb.base/callfuncs.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/callfuncs.exp b/gdb/testsuite/gdb.base/callfuncs.exp
index b108952..55294f0 100644
--- a/gdb/testsuite/gdb.base/callfuncs.exp
+++ b/gdb/testsuite/gdb.base/callfuncs.exp
@@ -119,7 +119,7 @@ proc do_function_calls {} {
gdb_test "p t_int_double(99, 99.0)" " = 1"
}
- if [support_complex_tests] {
+ if { [support_complex_tests] && !$skip_float_test } {
gdb_test "p t_float_complex_values(fc1, fc2)" " = 1"
gdb_test "p t_float_complex_values(fc3, fc4)" " = 0"
--
1.9.1