Skip to content

Commit

Permalink
tests: Set vm.mmap_rnd_bits for topotests docker foobar
Browse files Browse the repository at this point in the history
Signed-off-by: Donatas Abraitis <[email protected]>
  • Loading branch information
ton31337 committed Nov 26, 2024
1 parent 2484793 commit 6eb3a60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/topotests/docker/inner/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ cd "${FRR_BUILD_DIR}/tests/topotests"
log_info "Setting permissions on /tmp so we can generate logs"
chmod 1777 /tmp

# This is a MUST, otherwise we have:
# AddressSanitizer:DEADLYSIGNAL
# Segmentation fault
sysctl -w vm.mmap_rnd_bits=28

if [ $# -eq 0 ] || ([[ "$1" != /* ]] && [[ "$1" != ./* ]]); then
export TOPOTESTS_CHECK_MEMLEAK=/tmp/memleak_
export TOPOTESTS_CHECK_STDERR=Yes
Expand Down

0 comments on commit 6eb3a60

Please sign in to comment.