FYI: Recent test case additions

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FYI: Recent test case additions

ahughes-2
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 <[hidden email]>

        * 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  <[hidden email]>

        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  <[hidden email]>

        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  <[hidden email]>

        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  <[hidden email]>

        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