Fix: filter-grammar-test: add dependencies between steps
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 31 Mar 2020 03:24:24 +0000 (23:24 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 Apr 2020 23:47:19 +0000 (19:47 -0400)
commit89517b0e83e8e8d068c5e18bedd6a3b1d02876f0
tree57a76c34e302cf593360a8c0e4dbed0dab8fdbde
parent2ce24bb817103fae885df9379405bd97c2a58b84
Fix: filter-grammar-test: add dependencies between steps

If the user specifies only the -B switch of the filter-grammar-test
program, the program will try to print the bytecode without having
generated it first, leaving to a segfault.  Similarly, if the user
specifies only the -b switch, the program will try to generate the
bytecode from the IR, without having generated the IR first, also
leading to a segfault.

This patch adds some kind of dependency between the steps, such that if
the user is interested in a particular step (let's say, print the
bytecode), all the required steps will also be done.

Change-Id: Idc365a12b992a950566f227759fd3223cf5c5fd8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/filter/filter-grammar-test.c
This page took 0.025562 seconds and 4 git commands to generate.