Skip to content

Commit 1c0818a

Browse files
committed
flow: Include LeakSanitizer suppression file in VPR run environment
This sets the LSAN_OPTIONS='suppressions=$VTR_ROOT/vpr/lsan.supp' environemnt variable (where $VTR_ROOT is automatically determined by run_vtr_flow.pl). For non-sanitizer builds this will be ignored, but passing it ensures we don't get spurious leaks (and tests failing as a result) when those leaks are coming from system libraries out side of VPR's control.
1 parent 9c0353b commit 1c0818a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vtr_flow/scripts/run_vtr_flow.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,9 @@ sub run_vpr {
16431643
push(@vpr_args, @extra_vpr_args);
16441644
}
16451645

1646+
#Add the LeakSanitizer (LSAN) suppression file
1647+
local $ENV{"LSAN_OPTIONS"} = "suppressions=$vtr_flow_path/../vpr/lsan.supp";
1648+
16461649
#Run the command
16471650
$q = &system_with_timeout(
16481651
$vpr_path, $args->{log_file},

0 commit comments

Comments
 (0)