tmf: Update the ctfadaptor tests for the new formatting
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 18 Jul 2012 19:20:04 +0000 (15:20 -0400)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 18 Jul 2012 19:20:04 +0000 (15:20 -0400)
Since 9dc3ba9, the .toString() method for integer CTF fields
will correctly format the value as per the formatting info
in the metadata.

Some unit tests have to be updated to cope with the new values,
for octal and hex integers.

Change-Id: I0aa8e7c919bbc8227cf7d9c5cc286561b172ece6
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfTmfEventFieldTest.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/ctfadaptor/CtfTmfEventTest.java

index 21acfd03519752e6f5f60c005353798de87dc957..300a27c68dc1358fd2e6d3d5ab98a5669b3e0c85 100644 (file)
@@ -134,7 +134,7 @@ public class CtfTmfEventFieldTest {
         Definition fieldDef = fixture.lookupDefinition(INT);
         CtfTmfEventField result = CtfTmfEventField.parseField(fieldDef, NAME);
         String result2 =CtfTmfEventField.copyFrom(result).toString();
-        assertEquals( result2, "test=2"); //$NON-NLS-1$
+        assertEquals( result2, "test=02"); //$NON-NLS-1$
     }
 
     /**
index a121ab1d9b6d392a16c9381d79809bf94966deb5..1ba0e32e4df6ea7ab45cb30507f583e14dd69e40 100644 (file)
@@ -216,6 +216,6 @@ public class CtfTmfEventTest {
     @Test
     public void testToString() {
         String s = fixture.getContent().toString();
-        assertEquals("pid=1922, inode=917738, flags=134217845, end=3074342912, start=3074334720, pgoff=0", s); //$NON-NLS-1$
+        assertEquals("pid=1922, inode=917738, flags=0x8000075, end=0xb73ec000, start=0xb73ea000, pgoff=0", s); //$NON-NLS-1$
     }
 }
This page took 0.030769 seconds and 5 git commands to generate.