From a71d7a0817f213699e06128c6d1729dc6a7ef76f Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 15 Apr 2023 15:40:05 +0200 Subject: Fix platform dependence in test --- tests/testthat/test_compiled_symbols.R | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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")) }) -- cgit v1.2.1