You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Text CTF metadata files are supposed to start with "/* CTF " followed by
the CTF version. https://diamon.org/ctf/v1.8.3/#spec7.1
However, to support opening traces that don't comply with the
specification check for some common metadata keywords at the
beginning of the metadata file when validating the trace. This will
allow to open such traces with Trace Compass.
fixes#298
Signed-off-by: Bernd Hufmann <[email protected]>
Copy file name to clipboardExpand all lines: ctf/org.eclipse.tracecompass.ctf.core.tests/src/org/eclipse/tracecompass/ctf/core/tests/trace/MetadataPrevalidationTest.java
+84-2Lines changed: 84 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -180,21 +180,103 @@ public void testTraceDirectoryWithJsonMetadata() throws IOException, CTFExceptio
180
180
}
181
181
182
182
/**
183
-
* Test a valid trace with text invalid metadata should return false
183
+
* Test a valid trace with text metedata missing TSDL header, but with allowed "trace"
Copy file name to clipboardExpand all lines: ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/internal/ctf/core/event/metadata/MetadataStrings.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -128,5 +128,9 @@ public interface MetadataStrings {
0 commit comments