dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patch] Fix output pattern checking issue


From: Ben Elliston
Subject: Re: [Patch] Fix output pattern checking issue
Date: Tue, 15 Mar 2016 15:33:27 +1100
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, Mar 04, 2016 at 10:20:57PM +0100, Yvan Roux wrote:

> there is an issue when remote testing testcases which check an
> output pattern with an explicit '\n' at the end.  rsh_exec
> explicitly removes it to behave as 'exec', I don't know if something
> changed in 'exec' behavior since these lines were checked in in 2001
> or if it still removes a '\n' in some configs, but there is a
> mismatch between native, where these kind of tests are ok, and
> remote, where they fail.

Natively, exec strips the newline (and there are no occurrences of
"keenewline" in the source tree; I grepped).  Here's a simple test
script (foo.exp):

  set x [exec uptime]
  set x2 [rsh_exec remotebox uptime "" "" ""]

  note "local: >${x}<"
  note "remote:>[lindex $x2 1]<"

No newline in either case, which is what I would have expected.

Cheers, Ben

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]