X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng2.kernel.core.tests%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Flttng2%2Fkernel%2Fcore%2Ftests%2Fstateprovider%2FStateSystemFullHistoryTest.java;h=f4aca60230915c8af1a094fd3251bcdf73515e4e;hb=a76f106746cf91aa14ccf8422c8e6508e2685359;hp=f3919ff60835e93ab07cd08fcf7e54842eaf8616;hpb=200789b30de06757c42a26030f44b6f0ce29fd75;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemFullHistoryTest.java b/org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemFullHistoryTest.java index f3919ff608..f4aca60230 100644 --- a/org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemFullHistoryTest.java +++ b/org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemFullHistoryTest.java @@ -52,6 +52,9 @@ public class StateSystemFullHistoryTest { /* Offset in the trace + start time of the trace */ private final static long interestingTimestamp1 = 18670067372290L + 1331649577946812237L; + /* ID we give to the state system we build */ + private static final String STATE_ID = "test-ss"; + protected static String getTestFileName() { return "/tmp/statefile.ht"; //$NON-NLS-1$ } @@ -62,7 +65,7 @@ public class StateSystemFullHistoryTest { stateFileBenchmark = new File(getTestFileName() + ".benchmark"); //$NON-NLS-1$ try { input = new CtfKernelStateInput(CtfTestFiles.getTestTrace()); - ssq = StateSystemManager.loadStateHistory(stateFile, input, true); + ssq = StateSystemManager.loadStateHistory(stateFile, input, STATE_ID, true); } catch (Exception e) { e.printStackTrace(); } @@ -92,7 +95,7 @@ public class StateSystemFullHistoryTest { ITmfStateSystem ssb2; input2 = new CtfKernelStateInput(CtfTestFiles.getTestTrace()); - ssb2 = StateSystemManager.loadStateHistory(stateFileBenchmark, input2, true); + ssb2 = StateSystemManager.loadStateHistory(stateFileBenchmark, input2, STATE_ID, true); assertEquals(CtfTestFiles.startTime, ssb2.getStartTime()); assertEquals(CtfTestFiles.endTime, ssb2.getCurrentEndTime()); @@ -103,7 +106,7 @@ public class StateSystemFullHistoryTest { ITmfStateSystem ssb2; /* 'newStateFile' should have already been created */ - ssb2 = StateSystemManager.loadStateHistory(stateFile, null, true); + ssb2 = StateSystemManager.loadStateHistory(stateFile, null, STATE_ID, true); assertNotNull(ssb2); assertEquals(CtfTestFiles.startTime, ssb2.getStartTime());