aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/pc-fp.exp
diff options
context:
space:
mode:
authorRuslan Kabatsayev <b7.10110111@gmail.com>2018-01-08 00:59:13 +0300
committerRuslan Kabatsayev <b7.10110111@gmail.com>2018-01-19 09:05:51 +0300
commitadf8243ba9220966bbb8f67460b2d323e00cbfdb (patch)
tree8a07604690604ec7e39f62310063884e1b17ed58 /gdb/testsuite/gdb.base/pc-fp.exp
parent1ebfa86a3c2a1dc2169da072dc65c32c56a2f254 (diff)
downloadgdb-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.base/pc-fp.exp')
-rw-r--r--gdb/testsuite/gdb.base/pc-fp.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/pc-fp.exp b/gdb/testsuite/gdb.base/pc-fp.exp
index 5230b2b..8a81db4 100644
--- a/gdb/testsuite/gdb.base/pc-fp.exp
+++ b/gdb/testsuite/gdb.base/pc-fp.exp
@@ -58,4 +58,4 @@ gdb_test "info register \$fp" "${valueof_fp}.*"
# Regression test for
# http://sourceware.org/bugzilla/show_bug.cgi?id=12659
gdb_test "info register pc fp" \
- "pc +${valueof_pc}\t${valueof_pc} <.*>\[\r\n\]+fp +${valueof_fp}\t${valueof_fp}\[\r\n\]+"
+ "pc +${valueof_pc}\[ \t\]+${valueof_pc} <.*>\[\r\n\]+fp +${valueof_fp}\[ \t\]+${valueof_fp}\[\r\n\]+"