Fix: src.ctf.fs: omitting to add ctf signature
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 Jun 2022 19:46:18 +0000 (15:46 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 19 Oct 2023 04:22:19 +0000 (00:22 -0400)
commitc719eabb20cebe8c01b76d5af4f020c3af6e6842
treed3ce94dfb93fbb40839d0e53e732322db3705534
parentfe0e4ca354987d25f438bd241e462d4f933ebfcd
Fix: src.ctf.fs: omitting to add ctf signature

When depacketizing a metadata stream we may need to add the CTF 1.8
signature at the beginning of the file if it's absent.

This fixes a regression introduces by commit:
  commit 06be99464988953e390114337ccdd20622fb50d1
  Author: Philippe Proulx <eeppeliteloop@gmail.com>
  Date:   Tue Jul 9 19:40:45 2019 -0400

      ctf: refactor metadata decoder to always have an instance

This regression was not caught earlier because the test case for that
feature was disabled.

This commit reintroduces that behaviour and enables the test case.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I3621a7f8a21ffe51f29dfa344f30039fdf5d16c4
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8204
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
CI-Build: Simon Marchi <simon.marchi@efficios.com>
src/plugins/ctf/fs-src/query.cpp
tests/Makefile.am
tests/cli/test_output_ctf_metadata
This page took 0.024534 seconds and 4 git commands to generate.