Skip to content

Commit

Permalink
Allow huge allocations attempts in sanitizer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PatKamin committed Oct 18, 2024
1 parent dfc01f3 commit d9d6b96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/reusable_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
- name: Run tests
working-directory: ${{env.BUILD_DIR}}
env:
ASAN_OPTIONS: allocator_may_return_null=1
TSAN_OPTIONS: allocator_may_return_null=1
run: |
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
ctest --output-on-failure
Expand Down Expand Up @@ -141,4 +144,7 @@ jobs:

- name: Run tests
working-directory: ${{env.BUILD_DIR}}
env:
ASAN_OPTIONS: allocator_may_return_null=1
TSAN_OPTIONS: allocator_may_return_null=1
run: ctest -C Debug --output-on-failure
3 changes: 3 additions & 0 deletions test/test_valgrind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ for test in $(ls -1 umf_test-*); do
umf_test-memspace_lowest_latency)
FILTER='--gtest_filter="-*allocLocalMt*"'
;;
umf_test-memoryPool)
FILTER='--gtest_filter="-*allocMaxSize*"'
;;
esac

[ "$FILTER" != "" ] && echo -n "($FILTER) "
Expand Down

0 comments on commit d9d6b96

Please sign in to comment.