Skip to content

Commit a037c33

Browse files
bors[bot]asomers
andauthored
Merge #1606
1606: Test preadv and pwritev on more operating systems r=rtzoeller a=asomers This was an oversight from PR #1511. Also, update the OSX test environment for Big Sur. Big Sur is the first OSX version that supports preadv/pwritev Co-authored-by: Alan Somers <asomers@gmail.com>
2 parents 87142d2 + ac159d9 commit a037c33

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

.cirrus.yml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,11 @@ task:
5454

5555
# Test OSX in a full VM
5656
task:
57-
matrix:
58-
- name: OSX x86_64
59-
env:
60-
TARGET: x86_64-apple-darwin
57+
name: OSX x86_64
58+
env:
59+
TARGET: x86_64-apple-darwin
6160
osx_instance:
62-
image: catalina-xcode
61+
image: big-sur-xcode
6362
setup_script:
6463
- curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
6564
- sh rustup.sh -y --profile=minimal --default-toolchain $TOOLCHAIN
@@ -257,6 +256,32 @@ task:
257256
<< : *BUILD
258257
before_cache_script: rm -rf $CARGO_HOME/registry/index
259258

259+
# DragonflyBSD temporarily needs a pinned nightly toolchain
260+
# rustc is broken on DragonflyBSD as of Dec-5, probably by
261+
# https://github.com/rust-lang/rust/commit/e68887e67cc6b7bb4ea5113a40eaa4c0831bda13
262+
task:
263+
container:
264+
image: rust:1.46
265+
name: DragonFly BSD x86_64
266+
env:
267+
BUILD: check
268+
ZFLAGS: -Zbuild-std
269+
TARGET: x86_64-unknown-dragonfly
270+
# Redox requires a nightly compiler.
271+
# If stuff breaks, change nightly to the date at
272+
# https://gitlab.redox-os.org/redox-os/redox/-/blob/master/rust-toolchain
273+
TOOLCHAIN: nightly-2021-12-04
274+
# Temporarily allow deprecation on DragonflyBSD until an alternative is
275+
# available.
276+
#https://github.com/rust-lang/libc/pull/2522
277+
RUSTFLAGS: -D warnings -A deprecated
278+
setup_script:
279+
- rustup toolchain add $TOOLCHAIN --profile minimal
280+
- rustup component add rust-src --toolchain $TOOLCHAIN
281+
- rustup component add clippy --toolchain $TOOLCHAIN
282+
<< : *BUILD
283+
before_cache_script: rm -rf $CARGO_HOME/registry/index
284+
260285
# Rust Tier 3 targets can't use Rustup
261286
task:
262287
container:
@@ -266,13 +291,6 @@ task:
266291
TOOLCHAIN: nightly
267292
ZFLAGS: -Zbuild-std
268293
matrix:
269-
- name: DragonFly BSD x86_64
270-
env:
271-
TARGET: x86_64-unknown-dragonfly
272-
# Temporarily allow deprecation on DragonflyBSD until an alternative is
273-
# available.
274-
#https://github.com/rust-lang/libc/pull/2522
275-
RUSTFLAGS: -D warnings -A deprecated
276294
- name: OpenBSD x86_64
277295
env:
278296
TARGET: x86_64-unknown-openbsd

test/sys/test_uio.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ fn test_pread() {
141141
}
142142

143143
#[test]
144-
#[cfg(target_os = "linux")]
144+
#[cfg(not(target_os = "redox"))]
145145
fn test_pwritev() {
146146
use std::io::Read;
147147

@@ -171,7 +171,7 @@ fn test_pwritev() {
171171
}
172172

173173
#[test]
174-
#[cfg(target_os = "linux")]
174+
#[cfg(not(target_os = "redox"))]
175175
fn test_preadv() {
176176
use std::io::Write;
177177

0 commit comments

Comments
 (0)