summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJay <jytrn@protonmail.com>2020-10-25 14:54:30 +0000
committerAbin Simon <abinsimon10@gmail.com>2020-10-28 22:43:11 +0530
commit11c44dd3a0b691eac1efa054830f3b0cae7cd667 (patch)
tree232bad51dbed9030202a9be10fc304a9a66f9fc6 /tests
parentd272f1023e4fd761d29c843ee0d76eb69d66a063 (diff)
remove mac from utf8
Diffstat (limited to 'tests')
-rw-r--r--tests/integration.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration.rs b/tests/integration.rs
index 80b5ca4..b186bd8 100644
--- a/tests/integration.rs
+++ b/tests/integration.rs
@@ -362,8 +362,8 @@ fn test_version_sort_overwrite_by_sizesort() {
.stdout(predicate::str::is_match("11\n2\n$").unwrap());
}
-#[cfg(not(os = "darwin"))]
#[cfg(test)]
+#[cfg(not(target_os = "mac"))]
fn bad_utf8(tmp: &std::path::Path, pre: &str, suf: &str) -> String {
let mut fname = format!("{}/{}", tmp.display(), pre).into_bytes();
fname.reserve(2 + suf.len());
@@ -373,8 +373,8 @@ fn bad_utf8(tmp: &std::path::Path, pre: &str, suf: &str) -> String {
unsafe { String::from_utf8_unchecked(fname) }
}
-#[cfg(not(os = "darwin"))]
#[test]
+#[cfg(not(target_os = "mac"))]
fn test_bad_utf_8_extension() {
use std::fs::File;
let tmp = tempdir();
@@ -387,8 +387,8 @@ fn test_bad_utf_8_extension() {
.stdout(predicate::str::is_match("bad.extension\u{fffd}\u{fffd}\n$").unwrap());
}
-#[cfg(not(os = "darwin"))]
#[test]
+#[cfg(not(target_os = "mac"))]
fn test_bad_utf_8_name() {
use std::fs::File;
let tmp = tempdir();