From ac9e91f488419f0c2e451a5f6960660193113a02 Mon Sep 17 00:00:00 2001 From: William Bourque Date: Tue, 26 Jan 2010 23:58:43 +0000 Subject: [PATCH] Fix broken unit tests for Lttng (bug 299715) --- .../lttng/tests/event/LttngEventTest.java | 2 +- .../lttng/tests/event/LttngTimestampTest.java | 4 ++-- .../lttng/tests/trace/LTTngTextTraceTest.java | 18 +++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTest.java b/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTest.java index 8494ce8516..996826cd88 100644 --- a/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTest.java +++ b/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngEventTest.java @@ -42,7 +42,7 @@ public class LttngEventTest extends TestCase { private final static String tracepath1="traceset/trace-15316events_nolost_newformat.txt"; private final static boolean skipIndexing=true; - private final static long eventTimestamp = 13589759412128L; + private final static long eventTimestamp = 13589759412127L; private final static String eventSource = "Kernel Core"; private final static String eventType = "metadata/0/core_marker_id"; private final static String eventChannel = "metadata"; diff --git a/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngTimestampTest.java b/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngTimestampTest.java index ee0ac8e9f4..b3849d3226 100644 --- a/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngTimestampTest.java +++ b/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/event/LttngTimestampTest.java @@ -31,8 +31,8 @@ public class LttngTimestampTest extends TestCase { private final static boolean skipIndexing=true; private final static String firstEventTimeSecond = "13589"; - private final static String firstEventTimeNano = "759412128"; - private final static long firstEventTimeFull = 13589759412128L; + private final static String firstEventTimeNano = "759412127"; + private final static long firstEventTimeFull = 13589759412127L; private static LTTngTextTrace testStream = null; private LTTngTextTrace initializeEventStream() { diff --git a/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/trace/LTTngTextTraceTest.java b/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/trace/LTTngTextTraceTest.java index 4c97762648..002d73eae7 100644 --- a/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/trace/LTTngTextTraceTest.java +++ b/org.eclipse.linuxtools.lttng.tests/src/org/eclipse/linuxtools/lttng/tests/trace/LTTngTextTraceTest.java @@ -39,28 +39,28 @@ public class LTTngTextTraceTest extends TestCase { private final static boolean skipIndexing=true; - private final static long firstEventTimestamp = 13589759412128L; - private final static long secondEventTimestamp = 13589759419903L; - private final static Long locationAfterFirstEvent = 304L; + private final static long firstEventTimestamp = 13589759412127L; + private final static long secondEventTimestamp = 13589759419902L; + private final static Long locationAfterFirstEvent = 245L; - private final static String tracename = "traceset/trace-15316events_nolost_newformat"; + private final static String tracename = "traceset/trace_15316events_nolost_newformat"; private final static long indexToSeekFirst = 0; private final static Long locationToSeekFirst = 0L; - private final static long contextValueAfterFirstEvent = 13589759412128L; + private final static long contextValueAfterFirstEvent = 13589759412127L; private final static String firstEventReference = tracename + "/metadata_0"; private final static long timestampToSeekTest1 = 13589826657302L; private final static Long indexToSeekTest1 = 7497L; - private final static long locationToSeekTest1 = 2124565; + private final static long locationToSeekTest1 = 1682942; private final static long contextValueAfterSeekTest1 = 13589826657302L; private final static String seek1EventReference = tracename + "/vm_state_0"; - private final static long timestampToSeekLast = 13589906758692L; + private final static long timestampToSeekLast = 13589906758691L; private final static Long indexToSeekLast = 15315L; - private final static long locationToSeekLast = 4313429; - private final static long contextValueAfterSeekLast = 13589906758692L; + private final static long locationToSeekLast = 3410544; + private final static long contextValueAfterSeekLast = 13589906758691L; private final static String seekLastEventReference = tracename + "/kernel_0"; private static LTTngTextTrace testStream = null; -- 2.34.1