Skip to content

Commit d811e27

Browse files
authored
Merge pull request #1788 from JohnTitor/ctest2
Use ctest2 to drop old dependencies
2 parents 0e8dd53 + c6fb0f3 commit d811e27

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

ci/emscripten.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -ex
44

5+
EMSDK_VERSION=1.39.16
6+
57
hide_output() {
68
set +x
79
on_err="
@@ -23,8 +25,8 @@ git clone https://github.com/emscripten-core/emsdk.git /emsdk-portable
2325
cd /emsdk-portable
2426
# FIXME: switch to an upstream install once
2527
# https://github.com/rust-lang/rust/pull/63649 lands
26-
hide_output ./emsdk install 1.39.12
27-
./emsdk activate 1.39.12
28+
hide_output ./emsdk install "${EMSDK_VERSION}"
29+
./emsdk activate "${EMSDK_VERSION}"
2830

2931
# Compile and cache libc
3032
# shellcheck disable=SC1091
@@ -34,7 +36,6 @@ HOME=/emsdk-portable/ emcc a.c
3436
rm -f a.*
3537

3638
# Make emsdk usable by any user
37-
cp /root/.emscripten /emsdk-portable
3839
chmod a+rxw -R /emsdk-portable
3940

4041
# node 8 is required to run wasm

libc-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ default-features = false
1111
[build-dependencies]
1212
cc = "1.0"
1313
# FIXME: Use fork ctest until the maintainer gets back.
14-
ctest = { git = "https://github.com/JohnTitor/ctest.git", branch = "old-ctest" }
14+
ctest2 = "0.3"
1515

1616
[features]
1717
default = [ "std" ]

libc-test/build.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![deny(warnings)]
22

33
extern crate cc;
4-
extern crate ctest;
4+
extern crate ctest2 as ctest;
55

66
use std::env;
77

@@ -1567,9 +1567,13 @@ fn test_android(target: &str) {
15671567

15681568
// FIXME: Somehow we cannot find these fns on aarch64.
15691569
// https://github.com/rust-lang/libc/issues/1765
1570-
"lockf" | "preadv64" | "pwritev64" | "openpty" |
1571-
"forkpty" | "login_tty" | "getifaddrs" | "freeifaddrs" |
1572-
"sethostname" | "getgrgid_r" | "getgrnam_r" if aarch64 => true,
1570+
"lockf" | "preadv64" | "pwritev64" | "openpty" | "forkpty"
1571+
| "login_tty" | "getifaddrs" | "freeifaddrs" | "sethostname"
1572+
| "getgrgid_r" | "getgrnam_r"
1573+
if aarch64 =>
1574+
{
1575+
true
1576+
}
15731577

15741578
_ => false,
15751579
}

0 commit comments

Comments
 (0)