Hi!

On Thu, 25 Feb 2016 11:45:06 -0800, Mike Stump <mikest...@comcast.net> wrote:
> On Feb 25, 2016, at 11:10 AM, Thomas Schwinge <tho...@codesourcery.com> wrote:
> > +    set lines [libffi_target_compile $src /dev/null assembly “"]
> 
> Does this work on a dos box, or windows or other random non-posix systems?

I don't know, and can't easily test.  However, I had seen the same
pattern be used elsewhere, for example:

    $ git grep dev/null -- libstdc++-v3/testsuite/lib/
    libstdc++-v3/testsuite/lib/libstdc++.exp:       set lines 
[v3_target_compile $src /dev/null executable ""]
    [several more]

..., so assumed that to be OK.

Now that I'm reading [dejagnu]/target.exp:default_target_compile, I see
that for "[is_remote host]", it *always* passes "-o a.out" and then
"remote_upload host a.out $destfile", so "/dev/null" never escapes from
the system that DejaGnu/runtest is running on, which is always a POSIX
system as far as I know.

Otherwise, we could easily switch all these to a temporary output file,
which is then deleted right away...


Grüße
 Thomas

Reply via email to