Skip to content

Commit 1f5dfdf

Browse files
committed
Update ASAN tests
1 parent dfc2c1c commit 1f5dfdf

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

.github/workflows/memcheck.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches:
77
- main
88
- master
9+
- '**valgrind**'
910
paths:
1011
- '.github/workflows/memcheck.yml'
1112
- 'src/**'
@@ -30,7 +31,8 @@ name: mem-check
3031
jobs:
3132
mem-check:
3233
runs-on: ubuntu-24.04
33-
name: valgrind ${{ matrix.config.test }}, ubuntu, R release
34+
35+
name: valgrind ${{ matrix.config.test }}
3436

3537
strategy:
3638
fail-fast: false
@@ -39,12 +41,13 @@ jobs:
3941
- {test: 'tests'}
4042
- {test: 'examples'}
4143
- {test: 'vignettes'}
42-
44+
4345
env:
4446
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
4547
_R_CHECK_FORCE_SUGGESTS_: false
4648
RSPM: https://packagemanager.rstudio.com/cran/__linux__/noble/latest
4749
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
50+
ASAN_OPTIONS: verify_asan_link_order=0
4851

4952
steps:
5053
- uses: ms609/actions/memcheck@main

memcheck/all.R

Lines changed: 0 additions & 4 deletions
This file was deleted.

memcheck/tests.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Code to be run with
2-
# R -d "valgrind --tool=memcheck --leak-check=full" --vanilla < tests/thisfile.R
3-
# First build and install the package.
1+
# Code to be run with
2+
# R -d "valgrind --tool=memcheck --leak-check=full --error-exitcode=1" --vanilla < memcheck/thisfile.R
43
library("TreeDist")
54
devtools::test()

memcheck/vignettes.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Code to be run with
2-
# R -d "valgrind --tool=memcheck --leak-check=full" --vanilla < tests/thisfile.R
3-
# First build and install the package.
4-
library("TreeDist")
5-
devtools::build_vignettes()
1+
# Code to be run with
2+
# R -d "valgrind --tool=memcheck --leak-check=full --error-exitcode=1" --vanilla < memcheck/thisfile.R
3+
devtools::build_vignettes(install = FALSE)

0 commit comments

Comments
 (0)