Skip to content

Commit ab982c5

Browse files
committed
skip tests with path issues on Windows
1 parent 66d3b06 commit ab982c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inst/tinytest/test_xptr.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

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

22+
## used below
23+
.onWindows <- .Platform$OS.type == "windows"
24+
2225
Rcpp::sourceCpp("cpp/XPtr.cpp")
2326

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

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

43+
if (.onWindows) exit_file("Skipping remainder of file on Windows")
44+
4045
# test finalizeOnExit default depending on RCPP_USE_FINALIZE_ON_EXIT
4146
file_path <- tempfile(fileext=".cpp")
4247
on.exit(unlink(file_path), add=TRUE)

0 commit comments

Comments
 (0)