harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashanth KS (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6620) [jdktools] Unit tests to test the functionality of the javac/javaw binaries
Date Mon, 18 Oct 2010 18:17:21 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922195#action_12922195
] 

Prashanth KS commented on HARMONY-6620:
---------------------------------------

Two failures that I see when I run this test are:

----------------------------------------------------------------------------------------------------------------------------------------------
<testcase classname="org.apache.harmony.tests.tools.javac.binary.JavacBinTest" name="test_nonExists"
time="0.703">
    <failure message="The output should contain &quot;is missing&quot; Error -
&quot;javac: file not found: no_this_test.java

We expect an "is missing"  message to be displayed (as per the ecj.jar output) but we see
a "not found".
----------------------------------------------------------------------------------------------------------------------------------------------
<testcase classname="org.apache.harmony.tests.tools.javaw.binary.JavawBinTest" name="testLaunch"
time="0.031">
    <failure message="Failure message should contain &quot;-dummy&quot; Error &quot;&quot;
Output &quot;Harmony Java launcher
Apache Harmony Launcher : (c) Copyright 1991, 2010 The Apache Software Foundation or its licensors,
as applicable.
java [-vm:vmdll -vmdir:dir -D... [-X...]] [args]

We get the same output from the launcher, irrespective of the options supplied to the javaw.
I guess this is known, but something to consider.
----------------------------------------------------------------------------------------------------------------------------------------------

> [jdktools] Unit tests to test the functionality of the javac/javaw binaries
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-6620
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6620
>             Project: Harmony
>          Issue Type: Test
>          Components: JDK
>         Environment: Windows and Linux
>            Reporter: Prashanth KS
>         Attachments: 001_HARMONY_6620.patch, 002_HARMONY_6620.patch, 003_HARMONY_6620.patch,
004_HARMONY_6620.patch, 005_HARMONY_6620.patch, resources.zip, TEST-org.apache.harmony.tests.tools.javac.binary.JavacBinTest.xml
>
>
> The ANT unit tests written for the jdktools binaries such as javac aren't flexible enough.
i.e. if there is a test failure then the rest of the tests are skipped. Moreover, there aren't
a lot of test scenarios created for these binaries.
> Added Unit tests to test the javac.exe and javaw.exe tools. This helps in providing a
better analysis of these tools across different runtimes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message