tests: Use session discarded counter to validate blocking test
authorKienan Stewart <kstewart@efficios.com>
Thu, 31 Aug 2023 20:06:09 +0000 (16:06 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 21 Dec 2023 21:38:35 +0000 (16:38 -0500)
commit8e023ed42dff12632a5096a3b2d6c25d144bdbfb
tree567d4dc115d5efd821ecb47c148e7c5fba0f9be0
parentfec7cc14f54b887abb2b43687783470710dc295a
tests: Use session discarded counter to validate blocking test

Motivation
==========

On my development machine, the block test takes about 75s to complete,
with the majority of the time being used in the infinite blocking
test.

Solution
========

Using the discarded counter provided by `lttng list SESSION`, the test
no longer spends time reading and processing the ~1G of traces with
babeltrace2. This reduces the run time of the entire suite from 75s to
about 15s.

Known drawbacks
===============

There's no longer a validation that the trace files written to disk
are parseable by a CTF reader.

Change-Id: I0ccdef53ef80f1ffe5cfff970b92c3de4ba460ec
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/ust/blocking/test_blocking
This page took 0.027322 seconds and 4 git commands to generate.