[PATCH] testsuite: use cygpath to convert from Unix to Windows paths
Simon Marchi
simark@simark.ca
Tue May 12 22:44:20 GMT 2020
On 2020-03-13 3:11 p.m., Tom Tromey wrote:
> Tom> Today I tried something a little weird -- I did a mingw build on Linux
> Tom> and then tried to run the gdb.server test cases. Linux can run mingw
> Tom> executables via wine...
>
> Tom> However this fails with:
>
> Tom> ERROR: tcl error sourcing /home/tromey/gdb/build-mingw/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.server/wrapper.exp.
> Tom> ERROR: sh: line 0: pwd: -W: invalid option
> Tom> pwd: usage: pwd [-LP]
>
> It failed this way on the Windows machine I have access to as well.
>
> I believe on that machine, I log in to a Cygwin environment, but
> normally I do mingw-hosted builds. The Cygwin "pwd" doesn't understand -W.
Hey, I missed that somehow, sorry about that.
I think I could implement something where we try multiple methods in sequence:
1. cygpath
2. pwd -W
3. the original regsub that was there prior to this patch
Would this help?
Simon
More information about the Gdb-patches
mailing list