From 746279ed56658824a10061929746e67a56345d6e Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 19 Jan 2012 20:33:37 +0400 Subject: [PATCH] diagnostics in mkdirs --- compiler/tests/org/jetbrains/jet/JetTestUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/tests/org/jetbrains/jet/JetTestUtils.java b/compiler/tests/org/jetbrains/jet/JetTestUtils.java index 6a4d44b65bd..59f6207f9ee 100644 --- a/compiler/tests/org/jetbrains/jet/JetTestUtils.java +++ b/compiler/tests/org/jetbrains/jet/JetTestUtils.java @@ -153,6 +153,9 @@ public class JetTestUtils { return; } if (!file.mkdirs()) { + if (file.exists()) { + throw new IOException("failed to create " + file + " file exists and not a directory"); + } throw new IOException(); } }