Fixed cleanup of files/dirs in lsm inverted index tests.

git-svn-id: https://hyracks.googlecode.com/svn/branches/hyracks_lsm_tree@1896 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-tests/hyracks-storage-am-lsm-invertedindex-test/src/test/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/common/LSMInvertedIndexTestHarness.java b/hyracks-tests/hyracks-storage-am-lsm-invertedindex-test/src/test/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/common/LSMInvertedIndexTestHarness.java
index 8519ec9..cc4d1f9 100644
--- a/hyracks-tests/hyracks-storage-am-lsm-invertedindex-test/src/test/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/common/LSMInvertedIndexTestHarness.java
+++ b/hyracks-tests/hyracks-storage-am-lsm-invertedindex-test/src/test/java/edu/uci/ics/hyracks/storage/am/lsm/invertedindex/common/LSMInvertedIndexTestHarness.java
@@ -116,9 +116,10 @@
         ioManager = TestStorageManagerComponentHolder.getIOManager();
         rnd.setSeed(RANDOM_SEED);
 
-        File invIndexFile = new File(onDiskDir + invIndexFileName);
-        invIndexFile.deleteOnExit();
-        invIndexFileRef = new FileReference(invIndexFile);
+        invIndexFileRef = ioManager.getIODevices().get(0).createFileReference(onDiskDir + invIndexFileName);
+        //File invIndexFile = new File(onDiskDir + invIndexFileName);
+        //invIndexFile.deleteOnExit();
+        //invIndexFileRef = new FileReference(invIndexFile);
     }
 
     public void tearDown() throws HyracksDataException {