fix: dev: When recording an rr trace, use libtool

When a system test is run with the `USE_RR` environment variable set to 1, an `rr` trace is now correctly generated for each instance of `named`.

Closes #5079

Merge branch '5079-fix-rr' into 'main'

See merge request isc-projects/bind9!10197
This commit is contained in:
Evan Hunt 2025-03-04 09:16:02 +00:00
commit 6320586df0

View file

@ -234,7 +234,7 @@ sub construct_ns_command {
$command = "taskset $taskset $NAMED ";
} elsif ($ENV{'USE_RR'}) {
$ENV{'_RR_TRACE_DIR'} = ".";
$command = "rr record --chaos $NAMED ";
$command = "$ENV{'TOP_BUILDDIR'}/libtool --mode=execute rr record --chaos $NAMED ";
} else {
$command = "$NAMED ";
}