aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests')
-rw-r--r--crates/shirabe/tests/util/ini_helper_test.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/shirabe/tests/util/ini_helper_test.rs b/crates/shirabe/tests/util/ini_helper_test.rs
index 0b3835a0..90015169 100644
--- a/crates/shirabe/tests/util/ini_helper_test.rs
+++ b/crates/shirabe/tests/util/ini_helper_test.rs
@@ -2,7 +2,7 @@
use shirabe::util::ini_helper::IniHelper;
use shirabe::util::platform::Platform;
-use shirabe_php_shim::{PATH_SEPARATOR, getenv, putenv};
+use shirabe_php_shim::{getenv, putenv};
#[allow(dead_code)]
fn set_up() -> TearDown {
@@ -39,7 +39,12 @@ impl Drop for TearDown {
}
fn set_env(paths: &[&str]) {
- unsafe { putenv("COMPOSER_ORIGINAL_INIS", paths.join(PATH_SEPARATOR)) };
+ unsafe {
+ putenv(
+ "COMPOSER_ORIGINAL_INIS",
+ std::env::join_paths(paths).unwrap(),
+ )
+ };
}
#[test]