Re: gcj segfaults on i686/x86_64-apple-darwin*

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Jack Howarth wrote:
> On Mon, Nov 09, 2009 at 02:33:11PM +0000, Andrew Haley wrote:
>> Jack Howarth wrote:
>>
>>>    Shouldn't the libjava testsuite contain some rudimentary tests using gcj
>>> to make sure it is functional?
>> Sure.
>>
>>> The recent testsuite results don't suggest
>>> major problems with java on intel darwin...
>>>
>>> http://gcc.gnu.org/ml/gcc-testresults/2009-11/msg00666.html
>>> http://gcc.gnu.org/ml/gcc-testresults/2009-10/msg01308.html
>> This means that, whatever the cause of the bug, it wasn't present
>> when these tests were run.
>>
>> You can easily verify that yourself by running 'make check-target-libjava'.
>>
>> Andrew.
> 
> Andrew,
>    What exactly would I need to add to...
> 
> public class testme {
>   public static void main(String args[]){
>     System.out.println("Hello");
>   }
> }
> 
> to convert it into a libjava compilation/execution test case for gcj?

you need to add one file, testme.out, which contains the expected
output from testme.  Put both files in libjava/testsuite/libjava.lang.

> It might be simplier to just try to run such a test case from within
> the libjava dejagnu harness to verify that the issue doesn't exist
> within it. I was considering something like...
> 
> gcj --main=testme -O pr41991.java
> 
> for the compilation and a scan for Hello on the output of the
> execution run. Thanks in advance for any hints on where to place
> such a test within the libjava dejagnu tests and what header
> entries to add.

I find it very hard to believe that the rest of the tests would pass
while Hello, world fails.

Andrew.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.