Skip to content

Commit

Permalink
CI: Fixed python tests on asan CI (#1031)
Browse files Browse the repository at this point in the history
Fixed python tests on asan CI

* Since python is not built with asan we must use the shared library
version of asan
* Disabled leak detection for python tests as it reports leaks from
pybind11

Signed-off-by: Jared Duffey <[email protected]>
  • Loading branch information
JDuffeyBQ authored Aug 1, 2024
1 parent 37c3df5 commit 8eccc1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/asan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ jobs:
cmake --build --preset ci-asan
- name: Test
run: |
ctest --preset ci-asan
export LD_PRELOAD=$(clang++-14 -print-file-name=libclang_rt.asan-x86_64.so)
ctest --preset ci-asan -E "PY"
export ASAN_OPTIONS=detect_leaks=0
ctest --preset ci-asan -R "PY"
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
},
"CMAKE_CXX_FLAGS": {
"type": "STRING",
"value": "-O1 -fsanitize=address -fno-omit-frame-pointer"
"value": "-O1 -fsanitize=address -fno-omit-frame-pointer -shared-libasan"
},
"VCPKG_TARGET_TRIPLET": {
"type": "STRING",
Expand Down

0 comments on commit 8eccc1b

Please sign in to comment.