You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by km...@apache.org on 2007/07/28 01:45:37 UTC

svn commit: r560424 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests: tests/tools/ImportExportLobTest.java util/derby_tests.policy

Author: kmarsden
Date: Fri Jul 27 16:45:36 2007
New Revision: 560424

URL: http://svn.apache.org/viewvc?view=rev&rev=560424
Log:
DERBY-2980  (partial) three test failed with 'java.security.AccessControlException
Fix some tests that failed after checkin of DERBY-2925
Contributed by Ramin Moazeni


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/ImportExportLobTest.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/ImportExportLobTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/ImportExportLobTest.java?view=diff&rev=560424&r1=560423&r2=560424
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/ImportExportLobTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/tools/ImportExportLobTest.java Fri Jul 27 16:45:36 2007
@@ -52,6 +52,7 @@
 
     String fileName; // main file used to perform import/export.
     String lobsFileName; // file name used to store lobs.
+    String lobsFileName2; // file name used to store lobs.
 
     public ImportExportLobTest(String name) throws SQLException {
         super(name);
@@ -60,6 +61,8 @@
             (SupportFilesSetup.getReadWrite("books.del")).getPath();
         lobsFileName = 
             (SupportFilesSetup.getReadWrite("books_lobs.dat")).getPath();
+	lobsFileName2 =
+            (SupportFilesSetup.getReadWrite("unql_books_lobs.dat")).getPath();
     }
 
     /**
@@ -299,10 +302,13 @@
         // lob data file should get crated at the same location, where
         // the main export file is created. And also perform import/export
         // using "UTF-16" code set.
-        
+       
+	// delete the export files.
+        SupportFilesSetup.deleteFile(lobsFileName2);
+ 
         doExportTableLobsToExtFile("APP", "BOOKS", fileName, 
                                     "\t", "|", "UTF-16", 
-                                   "unql_books_lobs.dat");
+                                   lobsFileName2);
         // DERBY-2546 - with JSR this hits a JVM issue
         if (JDBC.vmSupportsJDBC3()) 
         {

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy?view=diff&rev=560424&r1=560423&r2=560424
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy Fri Jul 27 16:45:36 2007
@@ -70,7 +70,7 @@
   // Import/export and other support files from these locations in tests
   permission java.io.FilePermission "${user.dir}${/}extin${/}-", "read";
   permission java.io.FilePermission "${user.dir}${/}extinout${/}-", "read,  write, delete";
-  permission java.io.FilePermission "${user.dir}${/}extout${/}-", "write";
+  permission java.io.FilePermission "${user.dir}${/}extout${/}-", "read,write";
   permission java.io.FilePermission "${user.dir}${/}extinout", "read,write";
   
   // These permissions are needed to load the JCE for encryption with Sun and IBM JDK131.