[PATCH] Fix for PR59585

2013-12-23 Thread Yury Gribov
Hi folks, This patch fixes problem with UBSan tests failing on remote target platforms (ARM via SSH). The error is caused by DejaGNU harness stripping trailing newline from test output (and thus causing pattern matching failures). Link to PR: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59585

Re: [PATCH] Fix for PR59585

2013-12-23 Thread Jakub Jelinek
On Mon, Dec 23, 2013 at 07:59:47PM +0400, Yury Gribov wrote: > Hi folks, > > This patch fixes problem with UBSan tests failing on remote target > platforms (ARM via SSH). The error is caused by DejaGNU harness > stripping trailing newline from test output (and thus causing > pattern matching failu

Re: [PATCH] Fix for PR59585

2013-12-23 Thread Yuri Gribov
Re-sending as plaintext. Jakub wrote: > Or is it stripping just the final newline at the end of output? Exactly. > Still sounds like a bug elsewhere to me. Let me investigate this deeper tomorrow (rebuilding fresh Dg, etc.). If it indeed turns out to be feature of current DejaGNU, workaround ma

Re: [PATCH] Fix for PR59585

2013-12-23 Thread Yury Gribov
Yury wrote: >> Still sounds like a bug elsewhere to me. > > Let me investigate this deeper tomorrow (rebuilding fresh Dg, etc.). So I've double-checked that this is a problem with trunk DejaGNU rsh.exp script removing trailing newline from test output: # Delete one trailing \n because that

Re: [PATCH] Fix for PR59585

2013-12-27 Thread Jakub Jelinek
On Tue, Dec 24, 2013 at 10:05:37AM +0400, Yury Gribov wrote: > Yury wrote: > >> Still sounds like a bug elsewhere to me. > > > > Let me investigate this deeper tomorrow (rebuilding fresh Dg, etc.). > > So I've double-checked that this is a problem with trunk DejaGNU > rsh.exp script removing trail

Re: [PATCH] Fix for PR59585

2013-12-27 Thread Yury Gribov
Jakub wrote: > Ok, I guess I can live with the original patch then. r206219. -Y