From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14112 invoked by alias); 1 Dec 2010 21:02:09 -0000 Received: (qmail 14090 invoked by uid 22791); 1 Dec 2010 21:02:07 -0000 X-SWARE-Spam-Status: No, hits=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_HK_NAME_DR,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Dec 2010 21:02:02 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oB1L21sd014519 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 1 Dec 2010 16:02:01 -0500 Received: from rivendell.middle-earth.co.uk (ovpn-113-46.phx2.redhat.com [10.3.113.46]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oB1L1usN032303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 1 Dec 2010 16:01:59 -0500 Date: Wed, 01 Dec 2010 21:02:00 -0000 From: Dr Andrew John Hughes To: mauve-patches@sourceware.org Subject: FYI: Recent test case additions Message-ID: <20101201210156.GS23577@rivendell.middle-earth.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact mauve-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-patches-owner@sourceware.org X-SW-Source: 2010/txt/msg00001.txt.bz2 I've added a number of new test cases to Mauve as a result of investigating http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42390 The earlier four below test for the first four issues in the bug. While running these, I found that they would fail, despite the security checks being present in the code. It appears that the TestSecurityManager uses a Policy object to check for security calls and this is ignored by the default SecurityManager on most GNU Classpath VMs. The latest change below adds a test to Mauve for this. I'll push a fix for GNU Classpath's VMAccessController shortly, but my testing shows that at least CACAO, JamVM and gij have their own copy that needs updating. 2010-12-01 Andrew John Hughes * gnu/testlet/TestSecurityManager.java: Fix whitespace. * gnu/testlet/java/security/Policy/setPolicy.java: Test that the default security manager actually uses the currently established policy. Our TestSecurityManager relies on this. 2010-11-24 Andrew John Hughes PR classpath/42390 * gnu/testlet/java/security/ProtectionDomain/Security.java New test to ensure toString() does a getPolicy check when not in debugging mode. 2010-11-15 Andrew John Hughes PR classpath/42390 * gnu/testlet/java/io/File/security.java: Add security manager checks for deleteOnExit, exists, canRead, isFile, isDirectory, isHidden, lastModified, length, canWrite, mkdir, mkdirs, setLastModified. 2010-11-15 Andrew John Hughes PR classpath/42390 * gnu/testlet/java/util/logging/LogManager/Security.java: Add test for addPropertyChangeListener and removePropertyChangeListener SecurityManager checks. 2010-11-15 Andrew John Hughes PR classpath/42390 * Makefile.in, * aclocal.m4, * configure: Regenerated. * gnu/testlet/java/io/ObjectOutputStream/security.java: Add tests for ObjectOutputStream(OutputStream) as reported in PR classpath/42390. -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and IcedTea http://www.gnu.org/software/classpath http://icedtea.classpath.org PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint = F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8