harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Cho (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6358) With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest fails
Date Mon, 19 Oct 2009 22:28:04 GMT
With root privilege, testInvalidParams of org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest
fails
------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-6358
                 URL: https://issues.apache.org/jira/browse/HARMONY-6358
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M11
         Environment: x86/redhat el5
            Reporter: Kyle Cho
            Priority: Minor


Below is a reduced test of the testInvalidParams in org.apache.harmony.logging.tests.java.util.logging.FileHandlerTest.java.

class testInvalidParams {
        public static void main(String[] args) throws Exception
        {
                try {
                        java.util.logging.FileHandler h = new java.util.logging.FileHandler("%t/%h");
                        System.err.println("failure: should throw null exception");
                } catch (java.io.FileNotFoundException e) {
                }
        }
}

Running this test with DRL vm under root privilege produces:
failure: should throw null exception

Under non root user, FileNotFoundException is thrown, which seems desired behavior.

-- 
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