]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
when recording an rr trace, use libtool
authorEvan Hunt <each@isc.org>
Sun, 2 Mar 2025 05:03:51 +0000 (21:03 -0800)
committerEvan Hunt <each@isc.org>
Tue, 4 Mar 2025 09:15:52 +0000 (09:15 +0000)
when running a system test with the USE_RR environment
variable set to 1, an rr trace is generated for named.
because rr wasn't run using libtool --mode=execute, the
trace would actually be generated for the wrapper script
generated by libtool, not for the actual named binary.

bin/tests/system/start.pl

index f8faac91a76855604cb05b3a1bea0ce4bc58752a..9110b5231aa46c2714d248cca6c6f5847cb5be8b 100755 (executable)
@@ -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 ";
        }