[PATCH] Remove some KPASSes in gdb.base/callfuncs.exp

Mark Kettenis
2012-10-23T18:27:50Z

Just fixed the bugs. Committed as obvious.

2012-10-23 Mark Kettenis <kettenis@gnu.org>

* gdb.base/callfuncs.exp: PR gdb/12796, gdb/12798 and gdb/12800
are now fixed.

Index: gdb.base/callfuncs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/callfuncs.exp,v
retrieving revision 1.53
diff -u -p -r1.53 callfuncs.exp
--- gdb.base/callfuncs.exp 20 Sep 2012 14:43:48 -0000 1.53
+++ gdb.base/callfuncs.exp 23 Oct 2012 18:23:12 -0000
@@ -149,19 +149,15 @@ proc do_function_calls {} {
}

if [support_complex_tests] {
- setup_kfail_for_target gdb/12798 "x86_64-*-*"
gdb_test "p t_float_complex_values(fc1, fc2)" " = 1"
gdb_test "p t_float_complex_values(fc3, fc4)" " = 0"

- setup_kfail_for_target gdb/12800 "x86_64-*-*"
gdb_test "p t_float_complex_many_args(fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4)" " = 1"
gdb_test "p t_float_complex_many_args(fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1)" " = 0"

- setup_kfail_for_target gdb/12798 "x86_64-*-*"
gdb_test "p t_double_complex_values(dc1, dc2)" " = 1"
gdb_test "p t_double_complex_values(dc3, dc4)" " = 0"

- setup_kfail_for_target gdb/12800 "x86_64-*-*"
gdb_test "p t_double_complex_many_args(dc1, dc2, dc3, dc4, dc1, dc2, dc3, dc4, dc1, dc2, dc3, dc4, dc1, dc2, dc3, dc4)" " = 1"
gdb_test "p t_double_complex_many_args(dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1, dc1)" " = 0"

@@ -246,17 +242,14 @@ proc do_function_calls {} {

if [support_complex_tests] {

- setup_kfail_for_target gdb/12796 "x86_64-*-*"
gdb_test "p t_structs_fc(struct_val1)" ".*= 3 \\+ 3 \\* I" \
"call inferior func with struct - returns float _Complex"

setup_kfail_for_target gdb/12783 "i?86-*-*"
- setup_kfail_for_target gdb/12796 "x86_64-*-*"
gdb_test "p t_structs_dc(struct_val1)" ".*= 4 \\+ 4 \\* I" \
"call inferior func with struct - returns double _Complex"

setup_kfail_for_target gdb/12783 "i?86-*-*"
- setup_kfail_for_target gdb/12796 "x86_64-*-*"
gdb_test "p t_structs_ldc(struct_val1)" "= 5 \\+ 5 \\* I" \
"call inferior func with struct - returns long double _Complex"
}