Skip to content

Commit 2de26ef

Browse files
committed
attempt fis user_header tests for mac and windows
1 parent 7f5226d commit 2de26ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-model-compile-user_header.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
skip_if(os_is_macos())
12

23
file_that_exists <- "placeholder_exists"
34
file_that_doesnt_exist <- "placeholder_doesnt_exist"
@@ -33,7 +34,6 @@ namespace bernoulli_external_model_namespace
3334
}"
3435

3536
test_that("cmdstan_model works with user_header with mock", {
36-
skip_if(os_is_macos())
3737
tmpfile <- tempfile(fileext = ".hpp")
3838
cat(hpp, file = tmpfile, sep = "\n")
3939

@@ -140,7 +140,7 @@ test_that("cmdstan_model works with user_header with mock", {
140140

141141
test_that("user_header precedence order is correct", {
142142

143-
tmp_files <- sapply(1:3, function(n) tempfile(fileext = ".hpp"))
143+
tmp_files <- sapply(1:3, function(n) wsl_safe_path(absolute_path(tempfile(fileext = ".hpp"))))
144144
sapply(tmp_files, function(filename) cat(hpp, file = filename, sep = "\n"))
145145
withr::defer(lapply(tmp_files, function(filename) file.remove(filename)))
146146

0 commit comments

Comments
 (0)