From 2ae34afbc090be47b76ceb9265855055e28522d8 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Tue, 11 Nov 2014 19:06:46 +0100 Subject: [PATCH] test for Fix for value storage corruption (IDEA-132488) --- .../testSrc/com/intellij/util/io/PersistentMapTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/platform-tests/testSrc/com/intellij/util/io/PersistentMapTest.java b/platform/platform-tests/testSrc/com/intellij/util/io/PersistentMapTest.java index d8c973a13af5..29efbcef7d5f 100644 --- a/platform/platform-tests/testSrc/com/intellij/util/io/PersistentMapTest.java +++ b/platform/platform-tests/testSrc/com/intellij/util/io/PersistentMapTest.java @@ -414,6 +414,7 @@ public class PersistentMapTest extends TestCase { map = new PersistentHashMap(file, stringDescriptor, integerDescriptor); if (isSmall) map.compact(); + else assertTrue(map.isDirty()); // autocompact on open should leave the map dirty assertTrue(!map.makesSenseToCompact()); System.out.println(System.currentTimeMillis() - started); for (int i = 0; i < stringsCount; ++i) {