Skip to content

Commit cfaa0d3

Browse files
committed
Disable leak detection in sanitizer test runs
Add ASAN_OPTIONS=detect_leaks=0 to all test steps to disable leak detection while keeping AddressSanitizer and UndefinedBehaviorSanitizer active for catching memory errors and undefined behavior.
1 parent 003d1ae commit cfaa0d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build-mudlet.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ jobs:
442442
AUTORUN_BUSTED_TESTS: 'true'
443443
TESTS_DIRECTORY: ${{github.workspace}}/src/mudlet-lua/tests
444444
QUIT_MUDLET_AFTER_TESTS: 'true'
445+
ASAN_OPTIONS: detect_leaks=0
445446

446447
- name: (macOS) Run Lua tests
447448
if: matrix.run_tests == 'true' && runner.os == 'macOS'
@@ -452,6 +453,7 @@ jobs:
452453
AUTORUN_BUSTED_TESTS: 'true'
453454
TESTS_DIRECTORY: ${{github.workspace}}/src/mudlet-lua/tests
454455
QUIT_MUDLET_AFTER_TESTS: 'true'
456+
ASAN_OPTIONS: detect_leaks=0
455457

456458
- name: Passed Lua tests
457459
if: matrix.run_tests == 'true'
@@ -466,12 +468,16 @@ jobs:
466468
if: matrix.run_tests == 'true' && runner.os == 'Linux'
467469
timeout-minutes: 5
468470
run: xvfb-run --auto-servernum ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --run-undo-tests
471+
env:
472+
ASAN_OPTIONS: detect_leaks=0
469473

470474
- name: (macOS) Run C++ undo/redo tests
471475
if: matrix.run_tests == 'true' && runner.os == 'macOS'
472476
timeout-minutes: 5
473477
shell: bash
474478
run: ~/Desktop/Mudlet.app/Contents/MacOS/mudlet --profile "Mudlet self-test" --run-undo-tests
479+
env:
480+
ASAN_OPTIONS: detect_leaks=0
475481

476482
- name: Passed C++ undo/redo tests
477483
if: matrix.run_tests == 'true'

0 commit comments

Comments
 (0)