public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] ld/testsuite: handle Windows drive letter in a noinit test
@ 2023-02-20 14:24 Cl?ment Chigot
  0 siblings, 0 replies; only message in thread
From: Cl?ment Chigot @ 2023-02-20 14:24 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a38cd00799f54973983ac9bfadbca915d02e85ef

commit a38cd00799f54973983ac9bfadbca915d02e85ef
Author: Clément Chigot <chigot@adacore.com>
Date:   Wed Jan 18 14:44:39 2023 +0100

    ld/testsuite: handle Windows drive letter in a noinit test
    
    The regexp in "noinit sections (ld -r)" is skipping the file path before
    the first ":". However, on Windows, a path can start with "C:". Adjust
    the regexp to allow such cases.
    
    ld/ChangeLog:
    
            * testsuite/ld-elf/noinit-sections-2.l: Allow Windows paths
            (starting with C:).

Diff:
---
 ld/testsuite/ld-elf/noinit-sections-2.l | 4 ++--
 1 file 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 0784c9e3e12..8ed2716c549 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-20 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-20 14:24 [binutils-gdb] ld/testsuite: handle Windows drive letter in a noinit test Cl?ment Chigot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).