This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA]: Fix testsuite call-ar-st/call-rt-st for targets with lack of %f


Hi!

The following two tests:

gdb.base/call-ar-st.exp
gdb.base/call-rt-st.exp

have some test cases that fail for 68hc11 because these test cases
rely on %f in the target printf.

The patch below solves this by checking for gdb_skip_float_test
and avoiding the test cases that print floats.

Can you approve this patch?

	Stephane

2001-07-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>

	* call-ar-st.exp: Use gdb_skip_float_test to avoid executing
	tests that print a float.
	* call-rt-st.exp: Likewise.
Index: gdb.base/call-ar-st.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/call-ar-st.exp,v
retrieving revision 1.8
diff -u -p -r1.8 call-ar-st.exp
--- call-ar-st.exp	2001/03/06 08:21:50	1.8
+++ call-ar-st.exp	2001/07/15 08:59:07
@@ -1,4 +1,4 @@
-#   Copyright 1998, 1999, 2000
+#   Copyright 1998, 1999, 2000, 2001
 #   Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -193,7 +193,8 @@ gdb_test "tbreak 1220" \
 	"Breakpoint.* file .*$srcfile, line 1220.*" \
 	"tbreakpoint line 1220"
 
-if ![gdb_skip_stdio_test "continuing to breakpoint 1220"] {
+if {![gdb_skip_float_test "continuing to breakpoint 1220"] && \
+    ![gdb_skip_stdio_test "continuing to breakpoint 1220"] } {
     send_gdb "continue\n"
     gdb_expect_list "continuing to breakpoint 1220" ".*$gdb_prompt $" {
 	"Continuing\\."
@@ -278,7 +279,8 @@ gdb_test "tbreak 1236" \
 "Breakpoint.* file .*$srcfile, line 1236.*" \
 "tbreakpoint line 1236"
 
-if ![gdb_skip_stdio_test "continuing to 1236"] {
+if {![gdb_skip_float_test "continuing to 1236"] && \
+    ![gdb_skip_stdio_test "continuing to 1236"] } {
     send_gdb "continue\n"
     gdb_expect_list "continuing to 1236"  ".*$gdb_prompt $" {
 	"Continuing\\..*array_c"
Index: gdb.base/call-rt-st.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/call-rt-st.exp,v
retrieving revision 1.4
diff -u -p -r1.4 call-rt-st.exp
--- call-rt-st.exp	2001/03/06 08:21:50	1.4
+++ call-rt-st.exp	2001/07/15 08:59:07
@@ -1,4 +1,4 @@
-# Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
+# Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -173,7 +173,8 @@ if {![gdb_skip_float_test "print print_o
     }
 }
 
-if ![gdb_skip_stdio_test "print print_two_floats(*f3)"] {
+if {![gdb_skip_float_test "print print_two_floats(*f3)"] && \
+    ![gdb_skip_stdio_test "print print_two_floats(*f3)"] } {
     send_gdb "print print_two_floats(*f3)\n"
     gdb_expect {
 	-re ".*Contents of two_floats_t:\[ \r\n\]+-2\\.345000\[ \t]+1\\.000000\[ \r\n\]+.\[0-9\]+ = \{float1 = -2\\.34500003, float2 = 1\}.*$gdb_prompt $" {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]