import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
+import static org.junit.Assume.assumeTrue;
import org.eclipse.linuxtools.lttng2.kernel.core.event.matching.TcpEventMatching;
import org.eclipse.linuxtools.lttng2.kernel.core.event.matching.TcpLttngEventMatching;
*/
@Before
public void setUp() {
+ assumeTrue(CtfTmfTestTrace.SYNC_SRC.exists());
+ assumeTrue(CtfTmfTestTrace.SYNC_DEST.exists());
CtfTmfTrace trace1 = CtfTmfTestTrace.SYNC_SRC.getTrace();
CtfTmfTrace trace2 = CtfTmfTestTrace.SYNC_DEST.getTrace();
public void cleanUp() {
fTraces[0].setTimestampTransform(TmfTimestampTransform.IDENTITY);
fTraces[1].setTimestampTransform(TmfTimestampTransform.IDENTITY);
+ CtfTmfTestTrace.SYNC_SRC.dispose();
+ CtfTmfTestTrace.SYNC_DEST.dispose();
}
/**
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
+import static org.junit.Assume.assumeTrue;
import org.eclipse.linuxtools.lttng2.kernel.core.event.matching.TcpEventMatching;
import org.eclipse.linuxtools.lttng2.kernel.core.event.matching.TcpLttngEventMatching;
@Test
public void testMatching() {
final String cr = System.getProperty("line.separator");
+ assumeTrue(CtfTmfTestTrace.SYNC_SRC.exists());
+ assumeTrue(CtfTmfTestTrace.SYNC_DEST.exists());
CtfTmfTrace trace1 = CtfTmfTestTrace.SYNC_SRC.getTrace();
CtfTmfTrace trace2 = CtfTmfTestTrace.SYNC_DEST.getTrace();
"Trace 1:" + cr +
" 2 unmatched incoming events" + cr +
" 1 unmatched outgoing events" + cr, stats);
+
+ CtfTmfTestTrace.SYNC_SRC.dispose();
+ CtfTmfTestTrace.SYNC_DEST.dispose();
}
}