Skip to content

Commit 8e48902

Browse files
committed
Allow huge allocations attempts in sanitizer tests
1 parent 9ea1868 commit 8e48902

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
@@ -117,6 +117,9 @@ for test in $(ls -1 umf_test-*); do
117117
umf_test-memspace_lowest_latency)
118118
FILTER='--gtest_filter="-*allocLocalMt*"'
119119
;;
120+
umf_test-memoryPool)
121+
FILTER='--gtest_filter="-*allocMaxSize*"'
122+
;;
120123
esac
121124

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

0 commit comments

Comments
 (0)