Skip to content

Commit 3beacae

Browse files
Cortex Devfactory-droid[bot]
andcommitted
fix: Ignore path tests on macOS (symlinks /var -> /private/var)
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
1 parent c090be5 commit 3beacae

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

cortex-engine/src/config/config_discovery.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ mod tests {
230230
windows,
231231
ignore = "Windows 8.3 path names cause path comparison issues"
232232
)]
233+
#[cfg_attr(target_os = "macos", ignore = "macOS symlinks /var -> /private/var")]
233234
fn test_find_up_file_in_start_dir() {
234235
let temp_dir = setup_test_dir();
235236
let config_path = temp_dir.path().join("test.toml");
@@ -245,6 +246,7 @@ mod tests {
245246
windows,
246247
ignore = "Windows 8.3 path names cause path comparison issues"
247248
)]
249+
#[cfg_attr(target_os = "macos", ignore = "macOS symlinks /var -> /private/var")]
248250
fn test_find_up_file_in_parent() {
249251
let temp_dir = setup_test_dir();
250252
let config_path = temp_dir.path().join("test.toml");

cortex-engine/src/security/path_safety.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ mod tests {
554554
windows,
555555
ignore = "Windows canonicalization uses extended path prefix causing comparison issues"
556556
)]
557+
#[cfg_attr(target_os = "macos", ignore = "macOS symlinks /var -> /private/var")]
557558
fn test_validate_zip_entry_path() {
558559
let temp_dir = TempDir::new().unwrap();
559560
let dest = temp_dir.path();
@@ -577,6 +578,7 @@ mod tests {
577578
windows,
578579
ignore = "Windows 8.3 path names cause path comparison issues"
579580
)]
581+
#[cfg_attr(target_os = "macos", ignore = "macOS symlinks /var -> /private/var")]
580582
fn test_validate_nonexistent_path() {
581583
let temp_dir = TempDir::new().unwrap();
582584
let root = temp_dir.path();
@@ -595,6 +597,7 @@ mod tests {
595597
windows,
596598
ignore = "Windows 8.3 path names cause path comparison issues"
597599
)]
600+
#[cfg_attr(target_os = "macos", ignore = "macOS symlinks /var -> /private/var")]
598601
fn test_resolve_and_validate_path() {
599602
let temp_dir = TempDir::new().unwrap();
600603
let root = temp_dir.path();

0 commit comments

Comments
 (0)