Skip to content

Commit

Permalink
skip tests with path issues on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Mar 24, 2023
1 parent 66d3b06 commit ab982c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inst/tinytest/test_xptr.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@

if (Sys.getenv("RunAllRcppTests") != "yes") exit_file("Set 'RunAllRcppTests' to 'yes' to run.")

## used below
.onWindows <- .Platform$OS.type == "windows"

Rcpp::sourceCpp("cpp/XPtr.cpp")

# test.XPtr <- function(){
Expand All @@ -37,6 +40,8 @@ expect_true(xptr_access_released(xp), info = "check access of released external

expect_error(xptr_use_released(xp), info = "check exception on use of released external pointer")

if (.onWindows) exit_file("Skipping remainder of file on Windows")

# test finalizeOnExit default depending on RCPP_USE_FINALIZE_ON_EXIT
file_path <- tempfile(fileext=".cpp")
on.exit(unlink(file_path), add=TRUE)
Expand Down

0 comments on commit ab982c5

Please sign in to comment.