Error if symlinks not supported in CI

This commit is contained in:
Chris Denton 2023-10-26 21:04:56 +01:00
parent 8396efecf7
commit 8ade047454
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE

View File

@ -74,7 +74,7 @@ macro_rules! error_contains {
// tests most of the time, but at least we do if the user has the right
// permissions.
pub fn got_symlink_permission(tmpdir: &TempDir) -> bool {
if cfg!(unix) {
if cfg!(not(windows)) || env::var_os("CI").is_some() {
return true;
}
let link = tmpdir.join("some_hopefully_unique_link_name");