try harder to place snapshots in teamcity temp dir

This commit is contained in:
peter
2015-01-16 17:48:28 +01:00
parent 2dd6581ad5
commit 88b82a297a
@@ -202,7 +202,9 @@ public class PsiEventsTest extends PsiTestCase {
LeakHunter.checkLeak(IdeEventQueue.getInstance(), PsiDirectory.class, isReallyLeak);
LeakHunter.checkLeak(LaterInvocator.getLaterInvocatorQueue(), PsiDirectory.class, isReallyLeak);
String dumpPath = FileUtil.createTempFile(new File(System.getProperty("java.io.tmpdir")), "testRenameFileWithoutDir", ".hprof", false, false).getPath();
String dumpPath = FileUtil.createTempFile(
new File(System.getProperty("teamcity.build.tempDir", System.getProperty("java.io.tmpdir"))), "testRenameFileWithoutDir", ".hprof",
false, false).getPath();
MemoryDumpHelper.captureMemoryDump(dumpPath);
System.out.println(dumpPath);