Skip to content
Success

Changes

Summary

  1. Add validation tests for binary FTrace parser (details)
Commit d7171d56f15fb653228f59e1b8c2b0728a34736c by Matthew Khouzam
Add validation tests for binary FTrace parser

This commit adds new unit tests that validate various sample test traces
using the new implementation of the binary FTrace parser that parses the
binary trace files directly without converting the files to text format.

The new tests detect an unhandled NumberFormatException while parsing
the trace version. Hence, this commit also includes a patch to handle
such exception.

Change-Id: Icaaa47d544f1a92cdc2eeabc7cfab3dcd3b51105
Signed-off-by: Hoang Thuan Pham <hoang.pham@calian.ca>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/190837
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Tested-by: Marco Miller <marco.miller@ericsson.com>
Reviewed-by: Marco Miller <marco.miller@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core.tests/src/org/eclipse/tracecompass/incubator/ftrace/core/tests/trace/BinaryFTraceTest.java
The file was modified tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/parser/BinaryFTraceFileParser.java (diff)