Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: Robustify mi-basics.exp
Date: Mon, 02 Oct 2006 15:52:00 -0000	[thread overview]
Message-ID: <200610021952.13431.vladimir@codesourcery.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]


Hi,
at the moment, mi-basics.exp will fail if current directory contains any 
regexp metacharacters. Fixed with attached, OK?

- Volodya

2006-10-02  Vladimir Prus  <vladimir@codesourcery.com>

	* gdb.mi/mi-basics.exp (test_path_specification): Pass orig_path
        via string_to_regexp.
	* gdb.mi/mi2-basics.exp: Likewise.


[-- Attachment #2: funny_paths.diff --]
[-- Type: text/x-diff, Size: 1054 bytes --]

Index: mi-basics.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-basics.exp,v
retrieving revision 1.14
diff -u -r1.14 mi-basics.exp
--- mi-basics.exp	10 Aug 2006 05:27:21 -0000	1.14
+++ mi-basics.exp	2 Oct 2006 15:47:24 -0000
@@ -219,6 +219,8 @@
 	}
     }
 
+    set orig_path [string_to_regexp ${orig_path}]
+
     mi_gdb_test "207-environment-path" \
              "207\\\^done,path=\"$orig_path\"" \
              "environment-path no-args operation"
Index: mi2-basics.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi2-basics.exp,v
retrieving revision 1.6
diff -u -r1.6 mi2-basics.exp
--- mi2-basics.exp	10 Aug 2006 05:27:21 -0000	1.6
+++ mi2-basics.exp	2 Oct 2006 15:47:24 -0000
@@ -222,6 +222,8 @@
 	}
     }
 
+    set orig_path [string_to_regexp ${orig_path}]
+
     mi_gdb_test "207-environment-path" \
              "207\\\^done,path=\"$orig_path\"" \
              "environment-path no-args operation"

             reply	other threads:[~2006-10-02 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-02 15:52 Vladimir Prus [this message]
2006-10-02 15:54 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610021952.13431.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox