diff options
author | Maciej W. Rozycki <macro@mips.com> | 2018-04-05 13:08:35 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@mips.com> | 2018-04-05 13:08:35 +0100 |
commit | 65bd20451fc7e5aea1f0283433f95fb2fe60771d (patch) | |
tree | 5e3f54c4246b5eccef5e9306d803483538322175 | |
parent | 2f8ceb38991ea2ee595afbdd5da51ba1a53cbec7 (diff) | |
download | gdb-65bd20451fc7e5aea1f0283433f95fb2fe60771d.zip gdb-65bd20451fc7e5aea1f0283433f95fb2fe60771d.tar.gz gdb-65bd20451fc7e5aea1f0283433f95fb2fe60771d.tar.bz2 |
binutils/testsuite: Tighten the error message check with `strip-13'
Avoid false positives and actually verify both that an `unsupported
relocation type 0x8f' message is produced and that no other message is,
except for the final `bad value', in the `strip-13' test. This ensures
that it is a relocation processing error and not a different issue that
has caused `strip' to terminate unsuccessfully, and that the number
representing the unsupported relocation has not been clobbered.
binutils/
* testsuite/binutils-all/strip-13.d: Also expect `unsupported
relocation type 0x8f' error message.
-rw-r--r-- | binutils/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/strip-13.d | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8ca9db4..1a97ff3 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,10 @@ 2018-04-05 Maciej W. Rozycki <macro@mips.com> + * testsuite/binutils-all/strip-13.d: Also expect `unsupported + relocation type 0x8f' error message. + +2018-04-05 Maciej W. Rozycki <macro@mips.com> + * testsuite/binutils-all/strip-13.s: Rename to... * testsuite/binutils-all/strip-13rela.s: ... this. * testsuite/binutils-all/strip-13rel.s: New test source. diff --git a/binutils/testsuite/binutils-all/strip-13.d b/binutils/testsuite/binutils-all/strip-13.d index 5069b2c..0ccb73e 100644 --- a/binutils/testsuite/binutils-all/strip-13.d +++ b/binutils/testsuite/binutils-all/strip-13.d @@ -1,6 +1,7 @@ #PROG: strip #strip: -g -#error: .* bad value +#error: \A[^\n]*: unsupported relocation type 0x8f\n +#error: [^\n]*: bad value\Z #not-target: h8300-* ip2k-* m6811-* m68hc11-* rx-* # The H8300-*, IP2K and 68HC11 targets use 16-bit addressing, so `.dc.a' # does not work for manual relocation data construction. |