mirror of https://github.com/sharkdp/fd.git
Don't test global ignore file on windows
Becase XDG_CONFIG_HOME doesn't work there.
This commit is contained in:
parent
fd707b42c2
commit
b6c7ebc4f1
|
@ -879,6 +879,7 @@ fn test_no_ignore_aliases() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(windows))]
|
||||||
#[test]
|
#[test]
|
||||||
fn test_global_ignore() {
|
fn test_global_ignore() {
|
||||||
let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES).global_ignore_file("one");
|
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
|
#[test_case("--unrestricted", ".hidden.foo
|
||||||
a.foo
|
a.foo
|
||||||
fdignored.foo
|
fdignored.foo
|
||||||
|
|
Loading…
Reference in New Issue