This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug testsuite/12647] New: racy: gdb.mi/ must not usegdb_test_multiple
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 7 Apr 2011 05:15:07 +0000
- Subject: [Bug testsuite/12647] New: racy: gdb.mi/ must not usegdb_test_multiple
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12647
Summary: racy: gdb.mi/ must not use gdb_test_multiple
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
gdb_test_multiple contains
-re "\r\n$gdb_prompt $" {
if ![string match "" $message] then {
fail "$message"
but this may falsely match an unfinished output expected to be matched by:
gdb_test_multiple "-environment-path" "-environment-path" {
-re "\\\^done,path=\"\(.*\)\"\r\n$mi_gdb_prompt" {
as mi_gdb_prompt is (without the angle brackets, ^M as \r\n delimiter):
<[(]gdb[)] ^M
>
while gdb_prompt is (without the angle brackets):
<\(gdb\)>
Unfortunately there ar 23 uses of gdb_test_multiple in gdb.mi/*.exp.
PASS: gdb.mi/mi2-basics.exp: environment-pwd operation
-environment-path^M
^done,path="/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin"^M
-(gdb) ^M
+(gdb) FAIL: gdb.mi/mi2-basics.exp: -environment-path
Expecting: ^(207-environment-path[^M
]+)?(207\^done,path="/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin"[^M
]+[(]gdb[)] ^M
[ ]*)
+^M
207-environment-path^M
207^done,path="/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin"^M
(gdb) ^M
-PASS: gdb.mi/mi2-basics.exp: environment-path no-args operation
+FAIL: gdb.mi/mi2-basics.exp: environment-path no-args operation
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.