src.ctf.fs: sort inputs paths
Sort input paths to make the behavior of the component more
deterministic.
For example, when there are duplicated packets in the trace and we pick
one copy, this will ensure that we always process the data stream files in
the same order, and that we always pick the same copy of the packet.
In practice, this will reduce the chances of observing different
behaviors on different platforms where glib reports the files of a trace
in different orders.
A test is added to verify that the choice of which copy of a packet to
choose, in case a packet is present in multiple copies, is independent
from the order of the inputs paths passed to the component.
Change-Id: I034ba8c909e76a1e89589e1f0e0f37512c9d88bf
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2396
This page took 0.026609 seconds and 5 git commands to generate.