changeset 1886:e128d6bc3d8f

Disable aslr pytest for fsanitize test platforms
author Matt Johnston <matt@ucc.asn.au>
date Wed, 16 Mar 2022 17:25:03 +0800
parents 5d8dbb6fdab7
children 30fd047f6ebf
files .github/workflows/build.yml
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/build.yml	Wed Mar 16 17:17:23 2022 +0800
+++ b/.github/workflows/build.yml	Wed Mar 16 17:25:03 2022 +0800
@@ -65,6 +65,8 @@
           #   configure_flags: --enable-fuzz --disable-harden --enable-bundled-libtom --enable-werror
           #   ldflags: -fsanitize=address
           #   extracflags: -fsanitize=address
+          #   # -fsanitize=address prevents aslr, don't test it
+          #   pytest_addopts: -k "not aslr"
           #   fuzz: True
           #   cc: clang
 
@@ -74,6 +76,7 @@
           #   ldflags: -fsanitize=undefined
           #   # don't fail with alignment due to https://github.com/libtom/libtomcrypt/issues/549
           #   extracflags: -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-recover=alignment
+          #   pytest_addopts: -k "not aslr"
           #   fuzz: True
           #   cc: clang
 
@@ -86,6 +89,8 @@
       # for fuzzing
       CXX: clang++
       RANLIB: ${{ matrix.ranlib || 'ranlib' }}
+      # pytest in "make check" recognises this for extra arguments
+      PYTEST_ADDOPTS: ${{ matrix.pytest_addopts }}
       # some pytests depend on special setup from this file. see authorized_keys below.
       DBTEST_IN_ACTION: true