Cleanup after each test.
commitec744115a1bf7e32244e2f15bdfc214ddb01452e
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 30 Nov 2008 23:40:33 +0000 (1 00:40 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 2 Dec 2008 16:30:02 +0000 (2 08:30 -0800)
tree03549e466adfac99cf13bcfb54a02a961cb21676
parent66df876f3a567915ad882cb9e3c090cf052f25aa
Cleanup after each test.

Automatically clean up any repositories created by the test cases.
Cleanup is attempted at the end of each test, but if that fails
Shutdown hooks attempt to clean up when the JVM exits. If memmory
mapping is enabled (disabled by default in unit tests), gc is
invoked to make it more likely that cleanup will occur successfully.
The drawback is that this is much slower, which is the reason we
disble memory mapping by default in unit tests.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryTestCase.java