mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
on project leaks in tests, dump heap into temp dir
1. to avoid polluting working copy 2. our TeamCity looks for artifacts there
This commit is contained in:
@@ -12,7 +12,6 @@ import com.intellij.mock.MockApplication;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.actionSystem.DataProvider;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.application.WriteAction;
|
||||
import com.intellij.openapi.application.impl.LaterInvocator;
|
||||
import com.intellij.openapi.command.CommandProcessor;
|
||||
@@ -290,7 +289,7 @@ public abstract class PlatformTestCase extends UsefulTestCase implements DataPro
|
||||
hashCodes.add(System.identityHashCode(project));
|
||||
}
|
||||
|
||||
String dumpPath = PathManager.getHomePath() + "/leakedProjects.hprof.zip";
|
||||
String dumpPath = FileUtil.getTempDirectory() + "/leakedProjects.hprof.zip";
|
||||
System.out.println("##teamcity[publishArtifacts 'leakedProjects.hprof.zip']");
|
||||
try {
|
||||
FileUtil.delete(new File(dumpPath));
|
||||
|
||||
Reference in New Issue
Block a user