Don't test global ignore file on windows

Becase XDG_CONFIG_HOME doesn't work there.
This commit is contained in:
Thayne McCombs 2022-12-18 23:33:20 -07:00
parent fd707b42c2
commit b6c7ebc4f1

View file

@ -879,6 +879,7 @@ fn test_no_ignore_aliases() {
);
}
#[cfg(not(windows))]
#[test]
fn test_global_ignore() {
let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES).global_ignore_file("one");
@ -890,6 +891,7 @@ fn test_global_ignore() {
);
}
#[cfg(not(windows))]
#[test_case("--unrestricted", ".hidden.foo
a.foo
fdignored.foo