From 02f59ddf5d0a18635b96a3c8fcaa468f8195e1f5 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 23 Oct 2024 04:24:18 -0500 Subject: [PATCH] test: Isolate unix-only test result --- tests/errors.rs | 1 + tests/file_yaml.rs | 1 + tests/legacy/file_yaml.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/tests/errors.rs b/tests/errors.rs index b04b0799..47110a51 100644 --- a/tests/errors.rs +++ b/tests/errors.rs @@ -45,6 +45,7 @@ fn test_error_type() { } #[test] +#[cfg(unix)] fn test_error_deser_whole() { #[derive(Deserialize, Debug)] struct Place { diff --git a/tests/file_yaml.rs b/tests/file_yaml.rs index 4758b4b1..751dda68 100644 --- a/tests/file_yaml.rs +++ b/tests/file_yaml.rs @@ -74,6 +74,7 @@ fn test_file() { } #[test] +#[cfg(unix)] fn test_error_parse() { let res = Config::builder() .add_source(File::new("tests/Settings-invalid", FileFormat::Yaml)) diff --git a/tests/legacy/file_yaml.rs b/tests/legacy/file_yaml.rs index 9aa258ce..baefc224 100644 --- a/tests/legacy/file_yaml.rs +++ b/tests/legacy/file_yaml.rs @@ -75,6 +75,7 @@ fn test_file() { } #[test] +#[cfg(unix)] fn test_error_parse() { let mut c = Config::default(); let res = c.merge(File::new("tests/Settings-invalid", FileFormat::Yaml));