harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6359) [classlib][luni] With root privilege, test_setReadOnly of org.apache.harmony.luni.tests.java.io.FileTest fails to pass
Date Thu, 22 Oct 2009 11:12:59 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim Ellison updated HARMONY-6359:
---------------------------------

    Summary: [classlib][luni] With root privilege, test_setReadOnly of org.apache.harmony.luni.tests.java.io.FileTest
fails to pass  (was: With root privilege, test_setReadOnly of org.apache.harmony.luni.tests.java.io.FileTest
fails to pass)

> [classlib][luni] With root privilege, test_setReadOnly of org.apache.harmony.luni.tests.java.io.FileTest
fails to pass
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6359
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6359
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M11
>         Environment: x86/redhat EL5
>            Reporter: Kyle Cho
>            Priority: Minor
>
> This reduced test representing test_setReadOnly of org.apache.harmony.luni.tests.java.io.FileTest.java
fails under root user.
> import java.io.*;
>                                                                                 
> class test_setReadOnly {
>         public static void main(String args[]) throws Exception
>         {
>                 test_setReadOnly sl = new test_setReadOnly();
>                 sl.test();
>         }
>                                                                                 
>         void test() throws Exception
>         {
>                 File f = File.createTempFile("hyts_tf", ".tmp");
>                 f.setReadOnly();
>                 try {
>                         new FileOutputStream(f);
>                         System.err.println("failure: IOException not thrown");
>                 } catch (IOException ioe) {
>                         System.err.println("pass: IOException expected");
>                 }
>                 f.delete();
>         }
> }
> Under root user, DRL vm prints:
> failure: IOException not thrown
> From non root user:
> pass: IOException expected

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