aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test/tst/org/eclipse
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-08-03 10:14:45 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-08-03 10:14:45 +0200
commitb4c3a5da0d764d62406d9f82a0e7c058062e91b3 (patch)
treeba3d34d497ad030dbb064f5cc06078de275315b7 /org.eclipse.jgit.test/tst/org/eclipse
parentc64dfe5b4928fa9127f5640a93cbd6766e8b97f0 (diff)
parent82e277c813398c9f519f16e83d080a94fa29a27c (diff)
downloadjgit-b4c3a5da0d764d62406d9f82a0e7c058062e91b3.tar.gz
jgit-b4c3a5da0d764d62406d9f82a0e7c058062e91b3.zip
Merge branch 'stable-6.5' into stable-6.6
* stable-6.5: Add verification in GcKeepFilesTest that bitmaps are generated Express the explicit intention of creating bitmaps in GC GC: prune all packfiles after the loosen phase Prepare 5.13.3-SNAPSHOT builds JGit v5.13.2.202306221912-r Change-Id: Id2e49252a9dc268210c9439848e77604885371aa
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcKeepFilesTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcKeepFilesTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcKeepFilesTest.java
index 840c09896d..571f2613e3 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcKeepFilesTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcKeepFilesTest.java
@@ -48,11 +48,15 @@ public class GcKeepFilesTest extends GcTestCase {
assertEquals(4, stats.numberOfLooseObjects);
assertEquals(4, stats.numberOfPackedObjects);
assertEquals(1, stats.numberOfPackFiles);
+ PackFile bitmapFile = singlePack.getPackFile().create(PackExt.BITMAP_INDEX);
+ assertTrue(keepFile.exists());
+ assertTrue(bitmapFile.delete());
gc.gc().get();
stats = gc.getStatistics();
assertEquals(0, stats.numberOfLooseObjects);
assertEquals(8, stats.numberOfPackedObjects);
assertEquals(2, stats.numberOfPackFiles);
+ assertEquals(1, stats.numberOfBitmaps);
// check that no object is packed twice
Iterator<Pack> packs = repo.getObjectDatabase().getPacks()