lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r718031 - /incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriterLockRelease.cs
Date Sun, 16 Nov 2008 13:52:15 GMT
Author: digy
Date: Sun Nov 16 05:52:15 2008
New Revision: 718031

URL: http://svn.apache.org/viewvc?rev=718031&view=rev
Log:
LUCENENET-154 (Lucene.Net.Index.TestIndexWriterLockRelease: Unit test fails in tear down if
directory does not exist)

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriterLockRelease.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriterLockRelease.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Index/TestIndexWriterLockRelease.cs?rev=718031&r1=718030&r2=718031&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriterLockRelease.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Index/TestIndexWriterLockRelease.cs Sun Nov 16
05:52:15 2008
@@ -44,7 +44,7 @@
 			base.SetUp();
 			if (this.__test_dir == null)
 			{
-				System.String tmp_dir = SupportClass.AppSettings.Get("java.io.tmpdir", "tmp");
+                System.String tmp_dir = SupportClass.AppSettings.Get("tempDir", "");
 				this.__test_dir = new System.IO.FileInfo(System.IO.Path.Combine(tmp_dir, "testIndexWriter"));
 				
 				bool tmpBool;
@@ -78,7 +78,7 @@
 		public override void TearDown()
 		{
 			base.TearDown();
-			if (this.__test_dir != null)
+            if (this.__test_dir != null && System.IO.Directory.Exists(this.__test_dir.FullName))
 			{
 				System.IO.FileInfo[] files = SupportClass.FileSupport.GetFiles(this.__test_dir);
 				
@@ -144,4 +144,4 @@
 			}
 		}
 	}
-}
\ No newline at end of file
+}



Mime
View raw message