From 88b82a297a21777cc004f3ff844be722ef9264a5 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 16 Jan 2015 17:46:36 +0100 Subject: [PATCH] try harder to place snapshots in teamcity temp dir --- .../com/intellij/psi/impl/file/impl/PsiEventsTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/java-tests/testSrc/com/intellij/psi/impl/file/impl/PsiEventsTest.java b/java/java-tests/testSrc/com/intellij/psi/impl/file/impl/PsiEventsTest.java index 21c682a0b29b..7e496fa39df0 100644 --- a/java/java-tests/testSrc/com/intellij/psi/impl/file/impl/PsiEventsTest.java +++ b/java/java-tests/testSrc/com/intellij/psi/impl/file/impl/PsiEventsTest.java @@ -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);