lttng: Correctly skip tests if test traces are missing
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Tue, 22 Jul 2014 22:57:19 +0000 (18:57 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 23 Jul 2014 15:24:58 +0000 (11:24 -0400)
commit58ba027e07473ccab448564043c3e2e98deff0ec
tree4867da56362d08e0f03d619a7072ff027850f243
parentab0a54d5e92226b0740750ae3f468345a02d1ef6
lttng: Correctly skip tests if test traces are missing

It used to be "unsafe" to do assumeTrue() in @BeforeClass methods,
but since Luna it seems to be the other way around: it skips
correctly when put in an @BeforeClass, but results in a failure
if it's within a @Before. Makes perfect sense!

Now add this to abstract and extending test classes, both with
different @BeforeClass, and you get a recipe for disaster.

Change-Id: I83670475241325f2e0277055fad83d8943927624
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/30298
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/analysis/LttngKernelAnalysisTest.java
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/event/matchandsync/ExperimentSyncTest.java
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.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemInMemoryTest.java
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemTest.java
This page took 0.029483 seconds and 5 git commands to generate.