You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2009/10/22 17:56:59 UTC

[jira] Assigned: (HARMONY-6359) [classlib][luni] With root privilege, test_setReadOnly of org.apache.harmony.luni.tests.java.io.FileTest fails to pass

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

Tim Ellison reassigned HARMONY-6359:
------------------------------------

    Assignee: Tim Ellison

> [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
>            Assignee: Tim Ellison
>            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.