lttng: Update timestamp used in tests
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 27 Apr 2012 17:09:49 +0000 (13:09 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Fri, 27 Apr 2012 17:13:00 +0000 (13:13 -0400)
CTF timestamps are now in UTC absolute time, and
not relative to the start time of the machine.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/CTFTestFiles.java
org.eclipse.linuxtools.lttng2.kernel.core.tests/src/org/eclipse/linuxtools/lttng2/kernel/core/tests/stateprovider/StateSystemFullHistoryTest.java

index e64c44ba26c7ad1e3223ba8f1a3cd543cee244f9..180fd92afb7156526f72501739bfffaf05263c2a 100644 (file)
@@ -35,7 +35,7 @@ public abstract class CTFTestFiles {
      * You can also set up a custom path below.
      */
     public final static String traceFile = "traces/trace2"; //$NON-NLS-1$
-    public final static long startTime = 18669367225825L;
+    public final static long startTime = 1331668247314038062L;
 
     private static CtfTmfTrace trace = null;
 
index 3c03879548566fa7f3801cd15084b6ea0dc8edab..54729edb8af8363d9d63d01844b1019985a4de01 100644 (file)
@@ -50,7 +50,8 @@ public class StateSystemFullHistoryTest {
     static IStateHistoryBackend hp;
     static StateHistorySystem shs;
 
-    private final static long interestingTimestamp1 = 18670067372290L;
+    /* Offset in the trace + start time of the trace */
+    private final static long interestingTimestamp1 = 18670067372290L + 1331649577946812237L;
 
     protected static String getTestFileName() {
         return "/tmp/statefile.ht"; //$NON-NLS-1$
@@ -199,7 +200,7 @@ public class StateSystemFullHistoryTest {
         intervals = shs.queryHistoryRange(quark, time1, time2);
         assertEquals(487, intervals.size()); /* Number of context switches! */
         assertEquals(1685, intervals.get(100).getStateValue().unboxInt());
-        assertEquals(18670480869135L, intervals.get(205).getEndTime());
+        assertEquals(1331668248427681372L, intervals.get(205).getEndTime());
     }
 
     /**
@@ -219,7 +220,7 @@ public class StateSystemFullHistoryTest {
         intervals = shs.queryHistoryRange(quark, time1, time2, resolution);
         assertEquals(129, intervals.size()); /* Number of context switches! */
         assertEquals(1452, intervals.get(50).getStateValue().unboxInt());
-        assertEquals(18670837977001L, intervals.get(100).getEndTime());
+        assertEquals(1331668248784789238L, intervals.get(100).getEndTime());
     }
 
     /**
This page took 0.026059 seconds and 5 git commands to generate.