Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 85394 invoked from network); 19 Oct 2009 22:38:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Oct 2009 22:38:21 -0000 Received: (qmail 1110 invoked by uid 500); 19 Oct 2009 22:38:21 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 1069 invoked by uid 500); 19 Oct 2009 22:38:21 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 1052 invoked by uid 99); 19 Oct 2009 22:38:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 22:38:21 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 22:38:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A5FC234C045 for ; Mon, 19 Oct 2009 15:37:59 -0700 (PDT) Message-ID: <2039496406.1255991879429.JavaMail.jira@brutus> Date: Mon, 19 Oct 2009 22:37:59 +0000 (UTC) From: "Kyle Cho (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6359) With root privilege, test_setReadOnly of org.apache.harmony.luni.tests.java.io.FileTest fails to pass MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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 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.