Fail if it was impossible to delete cache directory

For example it can be caused by open handler to file on Windows.
This commit is contained in:
Nikolay Krasko
2016-10-29 02:27:06 +03:00
parent f2d7b1a5fd
commit f87779bfb0
@@ -106,7 +106,7 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase {
if (LOCAL_CACHE_DIR.exists()) {
if (isLocalCacheOutdated()) {
System.out.println("-- Local caches outdated --");
FilesKt.deleteRecursively(LOCAL_CACHE_DIR);
Assert.assertTrue("Failed to delete local cache!", FilesKt.deleteRecursively(LOCAL_CACHE_DIR));
localCacheRebuild = true;
}
}