diff options
author | Andreas Arnez <arnez@linux.vnet.ibm.com> | 2014-10-24 09:15:10 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2014-11-13 10:14:30 +0100 |
commit | dbfdb174e3984a6f6965d594b712c212e09afcaf (patch) | |
tree | 934093b4f014895839b3b49d9383474192e874e2 /gdb/testsuite/gdb.base/call-rt-st.exp | |
parent | 888a2adec7736f2f507295fd2fd5feac732f4a7a (diff) | |
download | fsf-binutils-gdb-dbfdb174e3984a6f6965d594b712c212e09afcaf.zip fsf-binutils-gdb-dbfdb174e3984a6f6965d594b712c212e09afcaf.tar.gz fsf-binutils-gdb-dbfdb174e3984a6f6965d594b712c212e09afcaf.tar.bz2 |
Eliminate literal line numbers in call-rt-st.exp
Remove literal line numbers from the regexps in call-rt-st.exp. Add
appropriate eye-catchers to call-rt-st.c and refer to those instead.
gdb/testsuite/ChangeLog:
* gdb.base/call-rt-st.c: Add eye-catchers.
* gdb.base/call-rt-st.exp: Refer to eye-catchers instead of
literal line numbers.
Diffstat (limited to 'gdb/testsuite/gdb.base/call-rt-st.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/call-rt-st.exp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/call-rt-st.exp b/gdb/testsuite/gdb.base/call-rt-st.exp index 0ca312c..e9f7fb1 100644 --- a/gdb/testsuite/gdb.base/call-rt-st.exp +++ b/gdb/testsuite/gdb.base/call-rt-st.exp @@ -64,19 +64,20 @@ if ![runto_main] then { } +set stop_line [gdb_get_line_number "-break1-"] gdb_test "break loop_count" \ - "Breakpoint.* file .*call-rt-st.c, line 128\\." \ + "Breakpoint.* file .*call-rt-st.c, line $stop_line\\." \ "breakpoint loop_count" gdb_test "continue" \ - "Continuing\\..*Breakpoint.*loop_count \\(\\) at.*call-rt-st.c:128\[ \t\r\n\]+128\[\t \]+for \\(index=0; index.4; index..\\);\[\r\n \]+" \ + "Continuing\\..*Breakpoint.*loop_count \\(\\) at.*call-rt-st.c:$stop_line\[ \t\r\n\]+$stop_line\[\t \]+for \\(index=0; index.4; index..\\);.*\[\r\n \]+" \ "continue to loop_count" gdb_test_multiple "finish" "finish out from loop count" { - -re "Run till exit from .0 loop_count \\(\\) at.*call-rt-st.c:128\[ \t\r\n\]+main \\(\\) at.*call-rt-st.c:777\[ \t\r\n\]+777\[\t \]+return 0;.*$gdb_prompt $" { - pass "finish out from loop_count (line 777)" + -re "Run till exit from .0 loop_count \\(\\) at.*call-rt-st.c:$stop_line\[ \t\r\n\]+main \\(\\) at.*call-rt-st.c:${decimal}\[ \t\r\n\]+${decimal}\[\t \]+return 0;.*-finish1-.*$gdb_prompt $" { + pass "finish out from loop_count (finish1)" } - -re "Run till exit from .0 loop_count \\(\\) at.*call-rt-st.c:128\[ \t\r\n\]+main \\(\\) at.*call-rt-st.c:775\[ \t\r\n\]+775\[\t \]+loop_count.*$gdb_prompt $" { + -re "Run till exit from .0 loop_count \\(\\) at.*call-rt-st.c:$stop_line\[ \t\r\n\]+main \\(\\) at.*call-rt-st.c:${decimal}\[ \t\r\n\]+${decimal}\[\t \]+loop_count.*-finish2-.*$gdb_prompt $" { pass "finish out from loop_count (line 775)" } } |