Skip to content

Commit b7b09a1

Browse files
committed
tests: normalize pkg paths in R subprocess calls
- Avoid Windows '\U' escape from backslash paths
1 parent bfbfefe commit b7b09a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/testthat/test-compile-package.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ test_that("pkgload::load_all writes outputs and resolves anonymous quick() names
123123
skip_if_not_installed("pkgload")
124124

125125
pkgpath <- create_test_package(named_quick = FALSE, use_dynlib = TRUE)
126+
pkgpath <- normalizePath(pkgpath, winslash = "/", mustWork = TRUE)
126127
entrypoints <- file.path(pkgpath, "src", "quickr_entrypoints.c")
127128
fsubs <- file.path(pkgpath, "src", "quickr_sub_routines.f90")
128129

@@ -147,6 +148,7 @@ test_that("pkgload::load_all messages when NAMESPACE lacks useDynLib", {
147148
skip_if_not_installed("pkgload")
148149

149150
pkgpath <- create_test_package(named_quick = TRUE, use_dynlib = FALSE)
151+
pkgpath <- normalizePath(pkgpath, winslash = "/", mustWork = TRUE)
150152
entrypoints <- file.path(pkgpath, "src", "quickr_entrypoints.c")
151153

152154
code <- paste(

0 commit comments

Comments
 (0)