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]
Other format: [Raw text]

[RFA] default.exp checks wrong string


Hi,

the following patch fixes a wrong check in default.exp.  While the function
infcmd.c:print_float_info() prints

  "No floating-point info available for this processor."

the corresponding check in default.exp expects

  "No floating point info available for this processor."

which can result in a failing test due to the missing dash.

To keep it backward compatible, the below patch doesn't use a dash but a
dot to allow any character at that point.

ChangeLog:

	* gdb.base/default.exp: Fix expected string in `info float' test.

Index: testsuite/gdb.base/default.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/default.exp,v
retrieving revision 1.12
diff -u -p -r1.12 default.exp
--- testsuite/gdb.base/default.exp	8 May 2002 21:05:44 -0000	1.12
+++ testsuite/gdb.base/default.exp	9 Sep 2002 15:04:04 -0000
@@ -327,7 +327,7 @@ if { [istarget "arm*-*-*"] || \
 } elseif [istarget "i\[3456\]86-*-*"] then {
     gdb_test "info float" "R7:.*Status Word:.*Opcode:.*" "info float"
 } else {
-    gdb_test "info float" "No floating point info available for this processor." "info float"
+    gdb_test "info float" "No floating.point info available for this processor." "info float"
 }
 #test info functions
 gdb_test "info functions" "All defined functions:" "info functions"


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


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