diff options
| -rw-r--r-- | tests/testthat/test_compiled_symbols.R | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/tests/testthat/test_compiled_symbols.R b/tests/testthat/test_compiled_symbols.R index e5f151eb..2828951d 100644 --- a/tests/testthat/test_compiled_symbols.R +++ b/tests/testthat/test_compiled_symbols.R @@ -48,7 +48,11 @@ test_that("We can safely use compiled code", {    parallel::stopCluster(cl_psock)    # Clean up -  expect_true(file.remove("test_dlls/sfo_sfo.so")) +  if (Sys.info()["sysname"] != "Windows") { +    expect_true(file.remove("test_dlls/sfo_sfo.dll")) +  } else { +    expect_true(file.remove("test_dlls/sfo_sfo.so")) +  }    expect_true(file.remove("test_dlls"))  }) | 
