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/altivec-regs.exp | |
parent | 1ebfa86a3c2a1dc2169da072dc65c32c56a2f254 (diff) | |
download | binutils-gdb-adf8243ba9220966bbb8f67460b2d323e00cbfdb.tar.gz |
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/altivec-regs.exp')
-rw-r--r-- | gdb/testsuite/gdb.arch/altivec-regs.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.arch/altivec-regs.exp b/gdb/testsuite/gdb.arch/altivec-regs.exp index 5f64af581ea..fcff886c346 100644 --- a/gdb/testsuite/gdb.arch/altivec-regs.exp +++ b/gdb/testsuite/gdb.arch/altivec-regs.exp @@ -93,8 +93,8 @@ for {set i 0} {$i < 32} {incr i 1} { gdb_test "info reg vr$i" "vr$i.*$vector_register" "info reg vr$i" } -gdb_test "info reg vrsave" "vrsave.*0x1\t1" "info reg vrsave" -gdb_test "info reg vscr" "vscr.*0x1\t1" "info reg vscr" +gdb_test "info reg vrsave" "vrsave.*0x1\[ \t\]+1" "info reg vrsave" +gdb_test "info reg vscr" "vscr.*0x1\[ \t\]+1" "info reg vscr" # Now redo the same tests, but using the print command. # Note: in LE case, the char array is printed WITHOUT the last character. |