tmf: Don't use .deleteOnExit() in unit tests
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 7 Oct 2013 20:31:33 +0000 (16:31 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 8 Oct 2013 19:39:38 +0000 (15:39 -0400)
commit947504fadf683648b0141c88e872a8d372dc385e
treeaec28df10fb135209ace94eaa5c44d1bb6dcefda
parent8eaa4a57e5645f911b04960abe2dffa845382d92
tmf: Don't use .deleteOnExit() in unit tests

deleteOnExit() guarantees the file will be deleted *when the JVM exits*.
However, in most cases with unit tests, you want to clean up at the end
of the test, and not wait until the whole test run is over. This gives
more consistent behavior when running different tests in a different order.

So instead use a simple .delete() in @AfterClass methods.

Change-Id: I07f277dbe85b66659ca66c996b232cd64bb6868f
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17136
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/PartialStateSystemTest.java
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemFullHistoryTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statesystem/StateSystemPushPopTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/statistics/TmfStateStatisticsTest.java
This page took 0.024765 seconds and 5 git commands to generate.