Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-02-06 20:29:48 +0000
committerEike Stepper2011-02-06 20:29:48 +0000
commit9bd484320ccbcdff537328c646bc02daabd7d4ba (patch)
tree7ed091200ebfc4604821e6909de5ed681e652b7b /plugins/org.eclipse.net4j.tests
parentf4d16c32be0d02f0e7a90d4d1ff883395ab8c378 (diff)
downloadcdo-9bd484320ccbcdff537328c646bc02daabd7d4ba.tar.gz
cdo-9bd484320ccbcdff537328c646bc02daabd7d4ba.tar.xz
cdo-9bd484320ccbcdff537328c646bc02daabd7d4ba.zip
added temp dir override
Diffstat (limited to 'plugins/org.eclipse.net4j.tests')
-rw-r--r--plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
index b6c463f277..39dce06c07 100644
--- a/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
+++ b/plugins/org.eclipse.net4j.tests/src/org/eclipse/net4j/util/tests/AbstractOMTest.java
@@ -15,6 +15,7 @@ import org.eclipse.net4j.util.concurrent.ConcurrencyUtil;
import org.eclipse.net4j.util.event.EventUtil;
import org.eclipse.net4j.util.event.IListener;
import org.eclipse.net4j.util.io.IOUtil;
+import org.eclipse.net4j.util.io.TMPUtil;
import org.eclipse.net4j.util.lifecycle.ILifecycle;
import org.eclipse.net4j.util.lifecycle.LifecycleEventAdapter;
import org.eclipse.net4j.util.lifecycle.LifecycleUtil;
@@ -63,7 +64,7 @@ public abstract class AbstractOMTest extends TestCase
{
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
String prefix = AbstractOMTest.class.getName() + "-" + formatter.format(new Date()) + "-";
- File logFile = File.createTempFile(prefix, ".log");
+ File logFile = TMPUtil.createTempFile(prefix, ".log");
OMPlatform.INSTANCE.addLogHandler(new FileLogHandler(logFile, OMLogger.Level.WARN));
IOUtil.ERR().println("Logging errors and warnings to " + logFile);
IOUtil.ERR().println();

Back to the top