Skip to content

Commit 62d0fe2

Browse files
authored
Merge pull request #1258 from RcppCore/fix/xptr-paths-windows
skip tests with path issues on Windows
2 parents 66d3b06 + 1dfa241 commit 62d0fe2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2023-03-24 Iñaki Ucar <[email protected]>
2+
3+
* inst/tinytest/test_xptr.R: Skip some tests on Windows
4+
15
2023-03-19 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION (Version, Date): Roll minor version

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)