Skip to content

Commit

Permalink
Skip the OFD lock tests on musl
Browse files Browse the repository at this point in the history
OVERLAYFS_SUPER_MAGIC isn't defined on musl, at least not yet
  • Loading branch information
asomers committed Jul 3, 2020
1 parent d9e026c commit ced5227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -17,7 +17,7 @@ exclude = [
]

[dependencies]
libc = { git = "https://github.com/asomers/libc/", rev = "6f3ffc9bf8d2f4a8569db765c4b0623e90c8babf", features = [ "extra_traits" ] }
libc = { git = "https://github.com/asomers/libc/", rev = "1528ff12559b4902923f7ae253756f754b81ccb9", features = [ "extra_traits" ] }
bitflags = "1.1"
cfg-if = "0.1.10"

Expand Down
6 changes: 4 additions & 2 deletions test/test_fcntl.rs
Expand Up @@ -228,7 +228,8 @@ mod linux_android {
target_arch = "mips64",
target_arch = "mips64el",
target_arch = "powerpc64",
target_arch = "powerpc64le")))]
target_arch = "powerpc64le",
target_env = "musl")))]
fn test_ofd_write_lock() {
let tmp = NamedTempFile::new().unwrap();

Expand Down Expand Up @@ -269,7 +270,8 @@ mod linux_android {
target_arch = "mips64",
target_arch = "mips64el",
target_arch = "powerpc64",
target_arch = "powerpc64le")))]
target_arch = "powerpc64le",
target_env = "musl")))]
fn test_ofd_read_lock() {
let tmp = NamedTempFile::new().unwrap();

Expand Down

0 comments on commit ced5227

Please sign in to comment.