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=-1.9 required=5.0 tests=BAYES_00,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75be2b2314dc7a03,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.internetamerica!news.posted.internetamerica.POSTED!not-for-mail NNTP-Posting-Date: Sat, 14 Aug 2010 22:16:03 -0500 From: R.B. Love Newsgroups: comp.lang.ada Date: Sat, 14 Aug 2010 22:16:03 -0500 Message-ID: <2010081422160335270-rblove@airmailnet> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: AUnit Examples Fail User-Agent: Unison/2.1 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 98.198.73.199 X-Trace: sv3-tCX23v+OJp2rUvwdo+1fg+vBSatMiSo2v+9HwyxvqTL7ttO1Er1o1TVgWYvLolMbHQlJUFs3hN8OwjJ!SNt4UKUKG2WkmFjCCG40p0tB5x0V4PMVxtulYcctJhhV8eAdEbwOH671NIhDaHgtlvcJt2CxWE7N!lsY= X-Complaints-To: abuse@airmail.net X-DMCA-Complaints-To: abuse@airmail.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: g2news1.google.com comp.lang.ada:13318 Date: 2010-08-14T22:16:03-05:00 List-Id: All the talk about AUnit made me think I should be doing automatic unit testing. I grabbed a fresh copy of GPL 2010 Gnat along with the AUnit module. The install of Gnat went fine. I think the install of AUnit went fine. I went into the aunit/test directory and the make seemed to go well and reported. Then I go aunit-gpl-2010-src/examples/simple_test and type make. I get this: bash-3.2$ make gprbuild -p -Pharness/harness object directory "/home/rlove/SW_Tools/AUnit/aunit-gpl-2010-src/examples/simple_test/harness/obj" created object directory "/home/rlove/SW_Tools/AUnit/aunit-gpl-2010-src/examples/simple_test/tested_lib/obj" created for project testlib library directory "/home/rlove/SW_Tools/AUnit/aunit-gpl-2010-src/examples/simple_test/tested_lib/lib" created for project testlib gcc -c -g -gnatQ -O1 -gnatf -gnato -gnatwa.Xe -gnaty -gnat05 test_math.adb gcc -c -g -O1 -gnat05 -gnatwa.Xe -gnaty -gnata -gnatf math.adb gcc -c -g -gnatQ -O1 -gnatf -gnato -gnatwa.Xe -gnaty -gnat05 math_suite.adb gcc -c -g -gnatQ -O1 -gnatf -gnato -gnatwa.Xe -gnaty -gnat05 math-test.adb math-test.adb:19:07: warning: call to obsolescent procedure "Assert" declared at aunit-assertions.ads:113 math-test.adb:20:07: warning: call to obsolescent procedure "Assert" declared at aunit-assertions.ads:113 gprbuild: *** compilation phase failed make: *** [all] Error 4 I get the same result in any of the Examples directories. This was on my CentOS machine. I get the same results when I do this on a Mac. I was hoping the examples would work out of the box and serve as well, examples. Thanks for any pointers on how to make this work.