diff options
author | Clément Chigot <chigot@adacore.com> | 2023-02-21 15:07:58 +0100 |
---|---|---|
committer | Clément Chigot <chigot@adacore.com> | 2023-02-24 14:35:10 +0100 |
commit | 2b69325792f7aed5416aa4489dabd197e4c17254 (patch) | |
tree | 81d5ad7d48ccfca395a5efc73c5d767158e4faed /ld | |
parent | ae9a0a51e851eac3cdcd2a6791bf05480211c169 (diff) | |
download | gdb-2b69325792f7aed5416aa4489dabd197e4c17254.zip gdb-2b69325792f7aed5416aa4489dabd197e4c17254.tar.gz gdb-2b69325792f7aed5416aa4489dabd197e4c17254.tar.bz2 |
testsuite: prune DOS drive letter in test outputs
On DOS systems, absolute paths start with the drive letter. This can
trigger failures in the regexp from dump tests, especially for those
checking for warnings or errors. They are usually skipping everything
before the first ":" as it has to be the file path.
| [^:]*: warning: ...
In order to avoid modifying many regexps to allow such drive letters,
prune them from all the outputs if they are found at the beginning of
a line.
binutils/ChangeLog:
* testsuite/lib/binutils-common.exp (prune_dump_output): New
(run_dump_test): Use it.
ld/ChangeLog:
* testsuite/ld-elf/noinit-sections-2.l: Remove DOS drive letter
handler.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-elf/noinit-sections-2.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elf/noinit-sections-2.l b/ld/testsuite/ld-elf/noinit-sections-2.l index 8ed2716..0784c9e 100644 --- a/ld/testsuite/ld-elf/noinit-sections-2.l +++ b/ld/testsuite/ld-elf/noinit-sections-2.l @@ -1,5 +1,5 @@ #... -(|.:)[^:]*: warning: orphan section `.noinit.var_noinit' from \S+ being placed in section `.noinit.var_noinit' +[^:]*: warning: orphan section `.noinit.var_noinit' from \S+ being placed in section `.noinit.var_noinit' #... -(|.:)[^:]*: warning: orphan section `.gnu.linkonce.n.var_noinit2' from \S+ being placed in section `.gnu.linkonce.n.var_noinit2' +[^:]*: warning: orphan section `.gnu.linkonce.n.var_noinit2' from \S+ being placed in section `.gnu.linkonce.n.var_noinit2' #pass |