Skip to content

Commit c9cf6aa

Browse files
authored
Merge pull request #1065 from RcppCore/bugfix/skip_some_tests_on_sunos
skip remainder of one test file if on Solaris
2 parents a831639 + 973d705 commit c9cf6aa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2020-04-10 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/tinytest/test_exceptions.R: Skip parts of file if on Solaris
4+
15
2020-04-02 Dirk Eddelbuettel <[email protected]>
26

37
* inst/NEWS.rd: Mark as patch release 1.0.4.6

inst/tinytest/test_exceptions.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if (Sys.getenv("RunAllRcppTests") != "yes") exit_file("Set 'RunAllRcppTests' to
2020

2121
## used below
2222
.onWindows <- .Platform$OS.type == "windows"
23+
.onSolaris <- Sys.info()[["sysname"]] == "SunOS"
2324

2425
Rcpp::sourceCpp("cpp/exceptions.cpp")
2526

@@ -51,6 +52,7 @@ expect_identical(condition$message, "Inadmissible value")
5152
expect_identical(class(condition), c("Rcpp::exception", "C++Error", "error", "condition"))
5253

5354
if (.onWindows) exit_file("Skipping remainder of file on Windows")
55+
if (.onSolaris) exit_file("Skipping remainder of file on Solaris")
5456

5557
expect_true(!is.null(condition$cppstack))
5658

0 commit comments

Comments
 (0)