Re: [Mingw-w64-public] w64 cross, testsuite under wine, escape sequences

2018-09-06 Thread NightStrike
On Thu, Sep 6, 2018 at 9:08 AM NightStrike  wrote:
>
> Host: x86_64-pc-linux (Cent 6)
> Target: x86_64-w64-mingw32 (wine)
>
> When I build the linux > w64 cross compiler under linux and run the
> testsuite under wine, it all basically works for the most part.
> However, the log files get filled with what appears to be ANSI escape
> sequences of the form:
>
> ^[[?1h^[=^[[?1l^[>
>
> For instance:
>
> ^[[?1h^[=^[[?1l^[>PASS: gcc.dg/ipa/ipa-pta-1.c execution test
>
> This generally doesn't cause a problem, except in the case of some
> fortran output pattern tests that try to patch ^string$.  In that
> case, the regex fails, as it pulls in the escape sequences as part of
> "string".
>
> To run the testsuite under wine, I created a simulator board that uses
> "wine64" as the simulator that prefixes every spawned test.  I ran
> this manually myself, and I do not get any extra characters, so I do
> not think that it's wine related.
>
> Does anyone have any experience with this, or suggestions on what to do?

It looks like this is definitely wine.  Running it standalone under
strace shows this towards the end:

stat("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=2, ...}) = 0
access("/etc/terminfo/x/xterm-256color", R_OK) = -1 ENOENT (No such
file or directory)
stat("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=22, ...}) = 0
access("/usr/share/terminfo/x/xterm-256color", R_OK) = 0
open("/usr/share/terminfo/x/xterm-256color", O_RDONLY) = 10
read(10, "\32\1%\0&\0\17\0\235\1\251\5xterm-256color|xterm"..., 4097) = 3322
close(10)   = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or
TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or
TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or
TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=68, ws_col=209, ws_xpixel=0, ws_ypixel=0}) = 0
open("/proc/meminfo", O_RDONLY|O_CLOEXEC) = 10
fstat(10, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7ff2b72f9000
read(10, "MemTotal:   297772936 kB\nMem"..., 1024) = 1024
close(10)   = 0
munmap(0x7ff2b72f9000, 4096)= 0
write(1, "\33", 1 = 1
write(1, "[", 1[)= 1
write(1, "?", 1?)= 1
write(1, "1", 11)= 1
write(1, "h", 1h)= 1
write(1, "\33", 1 = 1
write(1, "=", 1=)= 1



Any idea how to tell dejagnu to strip this out?

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] w64 cross, testsuite under wine, escape sequences

2018-09-06 Thread NightStrike
Host: x86_64-pc-linux (Cent 6)
Target: x86_64-w64-mingw32 (wine)

When I build the linux > w64 cross compiler under linux and run the
testsuite under wine, it all basically works for the most part.
However, the log files get filled with what appears to be ANSI escape
sequences of the form:

^[[?1h^[=^[[?1l^[>

For instance:

^[[?1h^[=^[[?1l^[>PASS: gcc.dg/ipa/ipa-pta-1.c execution test

This generally doesn't cause a problem, except in the case of some
fortran output pattern tests that try to patch ^string$.  In that
case, the regex fails, as it pulls in the escape sequences as part of
"string".

To run the testsuite under wine, I created a simulator board that uses
"wine64" as the simulator that prefixes every spawned test.  I ran
this manually myself, and I do not get any extra characters, so I do
not think that it's wine related.

Does anyone have any experience with this, or suggestions on what to do?

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public