This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] default.exp checks wrong string
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 9 Sep 2002 18:32:20 +0200
- Subject: [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.