public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: java.lang.Runtime exec() throwpoint tests fix
@ 2006-01-27 15:25 Gary Benson
  0 siblings, 0 replies; only message in thread
From: Gary Benson @ 2006-01-27 15:25 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 95 bytes --]

Hi again,

My latest commit fixes the various exec() tests in java.lang.Runtime.

Cheers,
Gary

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 3114 bytes --]

Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.1379
diff -u -r1.1379 ChangeLog
--- ChangeLog	27 Jan 2006 13:12:23 -0000	1.1379
+++ ChangeLog	27 Jan 2006 15:19:19 -0000
@@ -1,3 +1,7 @@
+2006-01-27  Gary Benson <gbenson@redhat.com>
+
+	* gnu/testlet/java/lang/Runtime/security.java: Ignore the
+	modifyThread check that Classpath's reference VMProcess calls.
+
 2006-01-27  Gary Benson <gbenson@redhat.com>
 
 2006-01-27  Gary Benson <gbenson@redhat.com>
Index: gnu/testlet/java/lang/Runtime/security.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/Runtime/security.java,v
retrieving revision 1.1
diff -u -r1.1 security.java
--- gnu/testlet/java/lang/Runtime/security.java	27 Jan 2006 13:12:23 -0000	1.1
+++ gnu/testlet/java/lang/Runtime/security.java	27 Jan 2006 15:19:19 -0000
@@ -48,6 +48,8 @@
 
       Permission[] executeCommand = new Permission[] {
 	new FilePermission(sCommand, "execute")};
+      Permission[] modifyThread = new Permission[] {
+	new RuntimePermission("modifyThread")};
 
       Permission[] exitVM = new Permission[] {
 	new RuntimePermission("exitVM")};
@@ -69,7 +71,7 @@
 	// security: java.lang.Runtime-exec(String)
 	harness.checkPoint("exec(String)");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(sCommand).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -81,7 +83,7 @@
 	// security: java.lang.Runtime-exec(String, String[])
 	harness.checkPoint("exec(String, String[])");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(sCommand, null).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -93,7 +95,7 @@
 	// security: java.lang.Runtime-exec(String, String[], File)
 	harness.checkPoint("exec(String, String[], File)");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(sCommand, null, null).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -105,7 +107,7 @@
 	// security: java.lang.Runtime-exec(String[])
 	harness.checkPoint("exec(String[])");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(aCommand).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -117,7 +119,7 @@
 	// security: java.lang.Runtime-exec(String[], String[])
 	harness.checkPoint("exec(String[], String[])");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(aCommand, null).waitFor();
 	  sm.checkAllChecked(harness);
 	}
@@ -129,7 +131,7 @@
 	// security: java.lang.Runtime-exec(String[], String[], File)
 	harness.checkPoint("exec(String[], String[], File)");
 	try {
-	  sm.prepareChecks(executeCommand, noPerms);
+	  sm.prepareChecks(executeCommand, modifyThread);
 	  runtime.exec(aCommand, null, null).waitFor();
 	  sm.checkAllChecked(harness);
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-27 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-27 15:25 FYI: java.lang.Runtime exec() throwpoint tests fix Gary Benson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).