aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests')
-rw-r--r--crates/shirabe/tests/autoload/autoload_generator_test.rs4
-rw-r--r--crates/shirabe/tests/util/filesystem_test.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/tests/autoload/autoload_generator_test.rs b/crates/shirabe/tests/autoload/autoload_generator_test.rs
index 97fabf16..81a4040f 100644
--- a/crates/shirabe/tests/autoload/autoload_generator_test.rs
+++ b/crates/shirabe/tests/autoload/autoload_generator_test.rs
@@ -2535,7 +2535,7 @@ fn test_absolute_symlink_with_psr4_does_not_generate_warnings() {
// Create an absolute symlink
let target = format!("{}/tools-real", s.working_dir);
let r#link = format!("{}/tools", s.working_dir);
- assert!(shirabe_php_shim::symlink(&target, &r#link));
+ assert!(shirabe_php_shim::symlink(&target, &r#link).is_ok());
package.set_autoload(autoload(vec![
("psr-4", str_map(&[("MyTools\\", pstr("tools/"))])),
@@ -2577,7 +2577,7 @@ fn test_absolute_symlink_with_classmap_exclude_from_classmap() {
// Create an absolute symlink
let target = format!("{}/tools-real", s.working_dir);
let r#link = format!("{}/tools", s.working_dir);
- assert!(shirabe_php_shim::symlink(&target, &r#link));
+ assert!(shirabe_php_shim::symlink(&target, &r#link).is_ok());
package.set_autoload(autoload(vec![
("classmap", str_list(&["tools/"])),
diff --git a/crates/shirabe/tests/util/filesystem_test.rs b/crates/shirabe/tests/util/filesystem_test.rs
index 5bb44598..b217a342 100644
--- a/crates/shirabe/tests/util/filesystem_test.rs
+++ b/crates/shirabe/tests/util/filesystem_test.rs
@@ -512,7 +512,7 @@ fn test_unlink_symlinked_directory() {
mkdir(format!("{basepath}/real"), 0o777, true);
touch(format!("{basepath}/real/FILE"));
- let result = symlink(format!("{basepath}/real"), &symlinked);
+ let result = symlink(format!("{basepath}/real"), &symlinked).is_ok();
if !result {
// Symbolic links for directories not supported on this platform.
@@ -539,7 +539,7 @@ fn test_remove_symlinked_directory_with_trailing_slash() {
let symlinked = format!("{working_dir}/linked");
let symlinked_trailing_slash = format!("{symlinked}/");
- let result = symlink(format!("{working_dir}/real"), &symlinked);
+ let result = symlink(format!("{working_dir}/real"), &symlinked).is_ok();
if !result {
// Symbolic links for directories not supported on this platform.