Skip to content

Commit 74af29f

Browse files
committed
Allow huge allocations attempts in sanitizer tests
1 parent 39a952d commit 74af29f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/reusable_sanitizers.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
7474
- name: Run tests
7575
working-directory: ${{env.BUILD_DIR}}
76+
env:
77+
ASAN_OPTIONS: allocator_may_return_null=1
78+
TSAN_OPTIONS: allocator_may_return_null=1
7679
run: |
7780
${{ matrix.compiler.cxx == 'icpx' && '. /opt/intel/oneapi/setvars.sh' || true }}
7881
ctest --output-on-failure
@@ -141,4 +144,7 @@ jobs:
141144

142145
- name: Run tests
143146
working-directory: ${{env.BUILD_DIR}}
147+
env:
148+
ASAN_OPTIONS: allocator_may_return_null=1
149+
TSAN_OPTIONS: allocator_may_return_null=1
144150
run: ctest -C Debug --output-on-failure

test/test_valgrind.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ for test in $(ls -1 umf_test-*); do
125125
umf_test-memspace_lowest_latency)
126126
FILTER='--gtest_filter="-*allocLocalMt*"'
127127
;;
128+
umf_test-memoryPool)
129+
FILTER='--gtest_filter="-*allocMaxSize*"'
130+
;;
128131
esac
129132

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

0 commit comments

Comments
 (0)