diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-14 21:25:19 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-14 21:25:19 +0000 |
commit | 4081daa1ed1c7370d33dded34bf716600e1b349f (patch) | |
tree | e798f311e52ecea37e3a820052e1332defce68a2 /gdb/testsuite/gdb.base/nodebug.exp | |
parent | 35f37e1e6698cddd6f60e6a67f598700e9937d18 (diff) | |
download | gdb-4081daa1ed1c7370d33dded34bf716600e1b349f.zip gdb-4081daa1ed1c7370d33dded34bf716600e1b349f.tar.gz gdb-4081daa1ed1c7370d33dded34bf716600e1b349f.tar.bz2 |
* lib/gdb.exp (gdb_test): Between $pattern and $prompt, expect
only \r\n, not .*. The test can pass .* as the last thing in
$pattern if that is what it wants. In addition to providing this
flexibility, this change should speed up pattern matching in cases
where the pattern already ended with .* (there were a number of
them). This change also helps catch bad patterns--in the old
scheme the typo "char \*" instead of "char \\*" would pass. Now
it is caught.
* Many .exp files: Update callers.
Diffstat (limited to 'gdb/testsuite/gdb.base/nodebug.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/nodebug.exp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/nodebug.exp b/gdb/testsuite/gdb.base/nodebug.exp index dd84562..34b36a2 100644 --- a/gdb/testsuite/gdb.base/nodebug.exp +++ b/gdb/testsuite/gdb.base/nodebug.exp @@ -89,18 +89,18 @@ if ![file exists $binfile] then { setup_xfail "alpha*-*-osf*" "mips*-*-irix*" "*-*-ultrix*" gdb_test "ptype bsslocal" "<(data variable|variable), no debug info>" - gdb_test "backtrace" "#0.*inner.*#1.*middle.*#2.*top.*#3.*main" + gdb_test "backtrace" "#0.*inner.*#1.*middle.*#2.*top.*#3.*main.*" # Or if that doesn't work, at least hope for the external symbols - gdb_test "backtrace" "#0.*inner.*#1.*#2.*top.*#3.*main" + gdb_test "backtrace" "#0.*inner.*#1.*#2.*top.*#3.*main.*" # This test is not as obscure as it might look. `p getenv ("TERM")' # is a real-world example, at least on many systems. - test_print_accept {p/c array_index("abcdef",2)} "99 'c'" + test_print_accept {p/c array_index("abcdef",2)} "= 99 'c'" # Now, try that we can give names of file-local symbols which happen # to be unique, and have it still work if [runto middle] then { - gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main" + gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main.*" } } } |