Skip to content

Commit

Permalink
Run the AddressSanitizer during tests (#5815)
Browse files Browse the repository at this point in the history
* Run the AddressSanitizer during tests

* Show details for test failures
  • Loading branch information
esev authored Jan 12, 2025
1 parent 00fdf2c commit 0fe8d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
run: sed -i 's/-DBUILD_EPOCH=$UNIX_TIME/#-DBUILD_EPOCH=$UNIX_TIME/' platformio.ini

- name: PlatformIO Tests
run: platformio test -e coverage --junit-output-path testreport.xml
run: platformio test -e coverage -v --junit-output-path testreport.xml

- name: Save test results
if: always() # run this step even if previous step failed
Expand Down
2 changes: 1 addition & 1 deletion variants/portduino/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ build_src_filter = ${portduino_base.build_src_filter}

[env:coverage]
extends = env:native
build_flags = -lgcov --coverage -fprofile-abs-path ${env:native.build_flags}
build_flags = -lgcov --coverage -fprofile-abs-path -fsanitize=address ${env:native.build_flags}

0 comments on commit 0fe8d4c

Please sign in to comment.