diff options
author | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2018-01-08 00:59:13 +0300 |
---|---|---|
committer | Ruslan Kabatsayev <b7.10110111@gmail.com> | 2018-01-19 09:05:51 +0300 |
commit | adf8243ba9220966bbb8f67460b2d323e00cbfdb (patch) | |
tree | 8a07604690604ec7e39f62310063884e1b17ed58 /gdb/testsuite/gdb.arch/s390-multiarch.exp | |
parent | 1ebfa86a3c2a1dc2169da072dc65c32c56a2f254 (diff) | |
download | gdb-adf8243ba9220966bbb8f67460b2d323e00cbfdb.zip gdb-adf8243ba9220966bbb8f67460b2d323e00cbfdb.tar.gz gdb-adf8243ba9220966bbb8f67460b2d323e00cbfdb.tar.bz2 |
Make tests expect [ \t]+ pattern instead of \t for "info reg" command
This will allow to format output of "info reg" command as we wish,
without breaking the tests. In particular, it'll let us correctly align
raw and natural values of the registers using spaces instead of current
badly-working approach with tabs.
This change is forwards- and backwards-compatible, so that the amended
tests will work in the same way before and after reformatting patches
(unless the tests check formatting, of course, but I've not come across
any such tests).
Some tests already used this expected pattern, so they didn't
even have to be modified. Others are changed by this patch.
I've checked this on a i386 system, with no noticeable differences in
test results, so at least on i386 nothing seems to be broken by this.
gdb/testsuite/ChangeLog:
* gdb.arch/powerpc-d128-regs.exp: Replace expected "\[\t\]*" from
"info reg" with "\[ \t\]*".
* gdb.arch/altivec-regs.exp: Replace expected "\t" from "info reg" with
"\[ \t\]+".
* gdb.arch/s390-multiarch.exp: Ditto.
* gdb.base/pc-fp.exp: Ditto.
* gdb.reverse/i386-precsave.exp: Ditto.
* gdb.reverse/i386-reverse.exp: Ditto.
* gdb.reverse/i387-env-reverse.exp: Ditto.
* gdb.reverse/i387-stack-reverse.exp: Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.arch/s390-multiarch.exp')
-rw-r--r-- | gdb/testsuite/gdb.arch/s390-multiarch.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.arch/s390-multiarch.exp b/gdb/testsuite/gdb.arch/s390-multiarch.exp index 576fe55..50c7ab3 100644 --- a/gdb/testsuite/gdb.arch/s390-multiarch.exp +++ b/gdb/testsuite/gdb.arch/s390-multiarch.exp @@ -65,7 +65,7 @@ proc test_linux_v2 {} { set test "Linux v2" gdb_test_multiple "info reg system_call" "$test" { - -re "system_call\[ \t\]+0x\[0-9a-z\]+\t.*\r\n$gdb_prompt $" { + -re "system_call\[ \t\]+0x\[0-9a-z\]+\[ \t\]+.*\r\n$gdb_prompt $" { pass "$test" return 1 } @@ -79,7 +79,7 @@ proc test_linux_v2 {} { proc test_register_valid {reg variant} { gdb_test "info reg $reg" \ - "$reg\[ \t\]+0x\[0-9a-z\]+\t.*" \ + "$reg\[ \t\]+0x\[0-9a-z\]+\[ \t\]+.*" \ "'$reg' exists ($variant)" } |