comp.lang.ada
 help / color / mirror / Atom feed
From: stuart clark <clark.stuart.au@gmail.com>
Subject: Re: set_output doesnt work for ASIS Run(Reporter) for text_reporter
Date: Tue, 26 Oct 2010 02:49:10 -0700 (PDT)
Date: 2010-10-26T02:49:10-07:00	[thread overview]
Message-ID: <83368cee-e9d3-42c3-b877-a97e65916415@k22g2000yqh.googlegroups.com> (raw)
In-Reply-To: op.vk6bqpfaule2fv@garhos

On Oct 26, 5:12 pm, Yannick Duchêne (Hibou57)
<yannick_duch...@yahoo.fr> wrote:
> Le Tue, 26 Oct 2010 08:24:41 +0200, stuart clark  
> <clark.stuart...@gmail.com> a écrit:
>
> > if i use ada.text_io.set_output(my_out_file) and then call
> > run(reporter) the report is still output to standard out, however if i
> > do a ada.text_io.put_line("blah blah) then that goes to the
> > my_out_file.
>
> > the reporter is a aunit.reporter.text.text_reporter.
>
> > the aunit.reporter.text  traces to gnat_io.put_line(string) not
> > ada.text_io.
>
> > so i guess thats why set_ouput isnt working ???
>
> > anyone know how to get the reporter to write to a specific file rather
> > than standard out ???
>
> Take care of your title… ASIS is deeply different thing than AUnit ;) (I  
> was deeply confused by your title and the content of your message).
>
> For your concern, I suppose you've done an unexpected assumption which is  
> not stated anywhere. I just had a look athttp://libre.adacore.com/wp-content/files/auto_update/aunit-docs/auni...
> And it just talks about standard output, and nothing there sates this is  
> directed to use the same output as the one of Ada.Text_IO.
>
> (apologize if this does not really help)
>
> --
> Si les chats miaulent et font autant de vocalises bizarres, c’est pas pour  
> les chiens.

i just checked and gnat.io has a set_ouput(file).

i still dont get why aunit uses gnat.io instead of ada.text_io???



  reply	other threads:[~2010-10-26  9:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  6:24 set_output doesnt work for ASIS Run(Reporter) for text_reporter stuart clark
2010-10-26  6:26 ` stuart clark
2010-10-26  8:12 ` Yannick Duchêne (Hibou57)
2010-10-26  9:49   ` stuart clark [this message]
2010-10-26 12:30     ` Georg Bauhaus
2010-10-27 21:03     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox