File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ ${R_BIN} --vanilla -d "valgrind --tool=memcheck --leak-check=full --track-origin
3434# but R eats that and returns 0, so we need to look at the output and make sure that
3535# we have 0 errors instead.
3636if [ $( grep -c " ERROR SUMMARY: 0 errors" testthat.out) != 1 ]; then
37+ cat testthat.out
3738 echo " Found Valgrind errors"
3839 exit 1
3940fi
Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ skip_on_valgrind <- function() {
6060 # This does not actually skip on valgrind because we can't exactly detect it.
6161 # Instead, it skips on CRAN when the OS is linux + and the R version is development
6262 # (which is where valgrind is run as of this code)
63- # linux_dev <- identical(tolower(Sys.info()[["sysname"]]), "linux") &&
64- # grepl("devel", R.version.string)
63+ linux_dev <- identical(tolower(Sys.info()[[" sysname" ]]), " linux" ) &&
64+ grepl(" devel" , R.version.string )
6565
66- # if (linux_dev) {
67- # skip_on_cran()
68- # }
66+ if (linux_dev ) {
67+ skip_on_cran()
68+ }
6969}
7070
7171process_is_running <- function (x ) {
You can’t perform that action at this time.
0 commit comments