gdb/testsuite: special case '^' in gdb_test pattern
[binutils-gdb.git] / gdb / testsuite / gdb.mi / user-selected-context-sync.exp
index 9bcc90f06b42f5f15b1bcb3c12f214d37e143d3a..4889c31aff3b7d2500d12ef7f688ccd6a2a7e272 100644 (file)
@@ -500,7 +500,7 @@ proc ensure_no_output { test } {
     if { $gdb_spawn_id == $gdb_main_spawn_id } {
        # CLI
        gdb_test "print 666" \
-                "^print 666\r\n\\\$$decimal = 666" \
+                "^\\\$$decimal = 666" \
                 "$test, ensure no output CLI"
     } elseif { $gdb_spawn_id == $mi_spawn_id } {
        # MI