diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2023-04-15 15:40:05 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2023-04-15 15:40:05 +0200 |
commit | a71d7a0817f213699e06128c6d1729dc6a7ef76f (patch) | |
tree | d6b9242fbbdf520eff67f9ce5bdeda189246dd3c /tests/testthat/test_compiled_symbols.R | |
parent | b0b710ee9f9bb9bbe9708676d0c5822465e02203 (diff) |
Fix platform dependence in test
Diffstat (limited to 'tests/testthat/test_compiled_symbols.R')
-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")) }) |