harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r501822 - /harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java
Date Wed, 31 Jan 2007 12:09:17 GMT
Author: tellison
Date: Wed Jan 31 04:09:15 2007
New Revision: 501822

URL: http://svn.apache.org/viewvc?view=rev&rev=501822
Log:
Fix JNDI test so it doesn't leave resource behind.

Modified:
    harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java

Modified: harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java?view=diff&rev=501822&r1=501821&r2=501822
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/spi/NamingManagerTest.java
Wed Jan 31 04:09:15 2007
@@ -1861,7 +1861,8 @@
 			File f = new File(System.getProperty("harmony.tests.cp1"), pkg
 					.replace('.', '/')
 					+ "/jndiprovider.properties");
-			f.getParentFile().mkdirs();
+            f.createNewFile();
+            f.deleteOnExit();
 
 			PrintStream out = new PrintStream(new FileOutputStream(f));
 			for (Map.Entry<?, ?> e : res.entrySet()) {



Mime
View raw message