Skip to content

Commit 1a42691

Browse files
ensure cannonical temp dir
1 parent a519609 commit 1a42691

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/testing.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ run_test_impl <- function(path_executable,
9494
file_transformer,
9595
env,
9696
expect_success) {
97-
tempdir <- fs::dir_create(fs::file_temp())
97+
# ensure cannonical /private/var/... not /var/... on macOS
98+
tempdir <- fs::path(normalizePath((fs::dir_create(fs::file_temp()))))
9899
copy_artifacts(artifacts, tempdir)
99100
# if name set use this, otherwise put in root
100101
path_candidate_temp <- fs::path(tempdir, names(path_candidate))

0 commit comments

Comments
 (0)