Skip to content

Commit 70b227b

Browse files
committed
Auto merge of #1936 - JohnTitor:freebsd, r=JohnTitor
Drop FreeBSD 10 and add FreeBSD 13 image on Cirrus CI This should fix our CI.
2 parents 159a305 + 7aa6026 commit 70b227b

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

.cirrus.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
task:
2-
name: nightly x86_64-unknown-freebsd-10
2+
name: stable x86_64-unknown-freebsd-11
33
freebsd_instance:
4-
image: freebsd-10-4-release-amd64
4+
image: freebsd-11-4-release-amd64
55
setup_script:
66
- pkg install -y curl
77
- curl https://sh.rustup.rs -sSf --output rustup.sh
8-
- sh rustup.sh --default-toolchain nightly -y --profile=minimal
8+
- sh rustup.sh -y --profile=minimal
99
- . $HOME/.cargo/env
10-
- rustup default nightly
10+
- rustup default stable
1111
test_script:
1212
- . $HOME/.cargo/env
1313
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd
14+
- sh ci/run.sh x86_64-unknown-freebsd
1415

1516
task:
16-
name: stable x86_64-unknown-freebsd-11
17+
name: nightly x86_64-unknown-freebsd-12
1718
freebsd_instance:
18-
image: freebsd-11-4-release-amd64
19+
image: freebsd-12-1-release-amd64
1920
setup_script:
2021
- pkg install -y curl
2122
- curl https://sh.rustup.rs -sSf --output rustup.sh
22-
- sh rustup.sh -y --profile=minimal
23+
- sh rustup.sh --default-toolchain nightly -y --profile=minimal
2324
- . $HOME/.cargo/env
24-
- rustup default stable
25+
- rustup default nightly
2526
test_script:
2627
- . $HOME/.cargo/env
2728
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd
2829
- sh ci/run.sh x86_64-unknown-freebsd
2930

3031
task:
31-
name: nightly x86_64-unknown-freebsd-12
32+
name: nightly x86_64-unknown-freebsd-13
3233
freebsd_instance:
33-
image: freebsd-12-1-release-amd64
34+
image: freebsd-13-0-current-amd64-v20201001
3435
setup_script:
3536
- pkg install -y curl
3637
- curl https://sh.rustup.rs -sSf --output rustup.sh
37-
- sh rustup.sh --default-toolchain nightly -y --profile=minimal
38+
- sh rustup.sh -y --profile=minimal
3839
- . $HOME/.cargo/env
3940
- rustup default nightly
4041
test_script:

ci/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ else
121121

122122
cargo test $opt --manifest-path libc-test/Cargo.toml --target "${TARGET}"
123123

124+
# FIXME: Somehow it now emits errors like:
125+
# `relocation truncated to fit: R_MIPS_GOT_DISP against `fchmod@@GLIBC_2.0'`
126+
if [ "$TARGET" != "mips64el-unknown-linux-gnuabi64" ] && [ "$TARGET" != "mips64-unknown-linux-gnuabi64" ]; then
124127
cargo test $opt --features extra_traits --manifest-path libc-test/Cargo.toml \
125128
--target "${TARGET}"
129+
fi
126130
fi

libc-test/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,11 @@ fn test_freebsd(target: &str) {
18431843
// This was renamed in FreeBSD 12.2 and 13 (r350749).
18441844
"IPPROTO_SEP" | "IPPROTO_DCCP" => true,
18451845

1846+
// This was changed to 96(0x60) in FreeBSD 13:
1847+
// https://github.com/freebsd/freebsd/
1848+
// commit/06b00ceaa914a3907e4e27bad924f44612bae1d7
1849+
"MINCORE_SUPER" if Some(13) == freebsd_ver => true,
1850+
18461851
_ => false,
18471852
}
18481853
});

0 commit comments

Comments
 (0)