From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b81ef65f6fb639aa X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,CP1252 Path: g2news1.google.com!postnews.google.com!k22g2000yqh.googlegroups.com!not-for-mail From: stuart clark Newsgroups: comp.lang.ada Subject: Re: set_output doesnt work for ASIS Run(Reporter) for text_reporter Date: Tue, 26 Oct 2010 02:49:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <83368cee-e9d3-42c3-b877-a97e65916415@k22g2000yqh.googlegroups.com> References: <443608a0-b0f7-4973-b089-78047b130295@j18g2000yqd.googlegroups.com> NNTP-Posting-Host: 115.64.246.86 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1288086550 909 127.0.0.1 (26 Oct 2010 09:49:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 26 Oct 2010 09:49:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k22g2000yqh.googlegroups.com; posting-host=115.64.246.86; posting-account=MZK52AoAAABSzwZnz7ceKVzE2LKWwfyu User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14792 Date: 2010-10-26T02:49:10-07:00 List-Id: On Oct 26, 5:12=A0pm, Yannick Duch=EAne (Hibou57) wrote: > Le Tue, 26 Oct 2010 08:24:41 +0200, stuart clark =A0 > a =E9crit: > > > 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 =A0traces 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=85 ASIS is deeply different thing than AUnit ;) (= I =A0 > 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= =A0 > not stated anywhere. I just had a look athttp://libre.adacore.com/wp-cont= ent/files/auto_update/aunit-docs/auni... > And it just talks about standard output, and nothing there sates this is = =A0 > 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=92est pas p= our =A0 > 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???