* lib/gdb.exp(gdb_test): Surround the result pattern with
[deliverable/binutils-gdb.git] / gdb / testsuite / lib / gdb.exp
index dc203ca790e9213b30e044f1296c9219730dafa9..a49200410f0367087b1229cdb42445a521e71d53 100644 (file)
@@ -354,13 +354,13 @@ proc gdb_test { args } {
            gdb_start
            set result -1
        }
-       -re "\[\r\n\]*$pattern\[\r\n\]+$gdb_prompt $" {
+       -re "\[\r\n\]*($pattern)\[\r\n\]+$gdb_prompt $" {
            if ![string match "" $message] then {
                pass "$message"
            }
            set result 0
        }
-       -re "${question_string}$" {
+       -re "(${question_string})$" {
            send_gdb "$response_string\n";
            exp_continue;
        }
This page took 0.02458 seconds and 4 git commands to generate.