File tree Expand file tree Collapse file tree 7 files changed +18
-13
lines changed Expand file tree Collapse file tree 7 files changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ case "$TARGET" in
54
54
cp -r /checkout/* .
55
55
mkdir .cargo
56
56
cp ci/cargo-config .cargo/config
57
- sh ci/run.sh $TARGET
57
+ exec sh ci/run.sh $TARGET
58
58
"
59
59
exec docker run \
60
60
--entrypoint bash \
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ case "$TARGET" in
22
22
emulator @arm-18 -no-window &
23
23
adb wait-for-device
24
24
adb push libc-test/target/$TARGET /debug/libc-test /data/libc-test
25
- adb shell /data/libc-test
25
+ adb shell /data/libc-test 2>&1 | tee out
26
+ grep " ^PASSED .* tests" out
26
27
;;
27
28
28
29
arm-unknown-linux-gnueabihf)
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ pub const FD_SETSIZE: usize = 1024;
107
107
pub const ST_RDONLY : :: c_ulong = 1 ;
108
108
pub const ST_NOSUID : :: c_ulong = 2 ;
109
109
110
+ pub const NI_MAXHOST : :: socklen_t = 1025 ;
111
+
110
112
f ! {
111
113
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
112
114
let fd = fd as usize ;
Original file line number Diff line number Diff line change @@ -317,6 +317,7 @@ pub const O_NOCTTY: ::c_int = 256;
317
317
pub const O_NONBLOCK : :: c_int = 2048 ;
318
318
pub const O_SYNC : :: c_int = 0x1000 ;
319
319
320
+ pub const NI_MAXHOST : :: size_t = 1025 ;
320
321
321
322
f ! {
322
323
pub fn sigemptyset( set: * mut sigset_t) -> :: c_int {
Original file line number Diff line number Diff line change @@ -320,17 +320,6 @@ extern {
320
320
count : :: size_t ) -> :: ssize_t ;
321
321
}
322
322
323
- cfg_if ! {
324
- if #[ cfg( any( target_env = "musl" ) ) ] {
325
- pub const PTHREAD_STACK_MIN : :: size_t = 2048 ;
326
- } else if #[ cfg( any( target_arch = "arm" , target_arch = "x86" ,
327
- target_arch = "x86_64" ) ) ] {
328
- pub const PTHREAD_STACK_MIN : :: size_t = 16384 ;
329
- } else {
330
- pub const PTHREAD_STACK_MIN : :: size_t = 131072 ;
331
- }
332
- }
333
-
334
323
cfg_if ! {
335
324
if #[ cfg( target_env = "musl" ) ] {
336
325
mod musl;
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ pub const FOPEN_MAX: ::c_uint = 1000;
4
4
pub const POSIX_MADV_DONTNEED : :: c_int = 0 ;
5
5
pub const O_ACCMODE : :: c_int = 0o10000003 ;
6
6
pub const RUSAGE_CHILDREN : :: c_int = 1 ;
7
+ pub const NI_MAXHOST : :: socklen_t = 255 ;
8
+ pub const PTHREAD_STACK_MIN : :: size_t = 2048 ;
7
9
8
10
extern {
9
11
pub fn ioctl ( fd : :: c_int , request : :: c_int , ...) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -22,6 +22,16 @@ pub const RUSAGE_THREAD: ::c_int = 1;
22
22
pub const O_ACCMODE : :: c_int = 3 ;
23
23
pub const RUSAGE_CHILDREN : :: c_int = -1 ;
24
24
pub const ST_RELATIME : :: c_ulong = 4096 ;
25
+ pub const NI_MAXHOST : :: socklen_t = 1025 ;
26
+
27
+ cfg_if ! {
28
+ if #[ cfg( any( target_arch = "arm" , target_arch = "x86" ,
29
+ target_arch = "x86_64" ) ) ] {
30
+ pub const PTHREAD_STACK_MIN : :: size_t = 16384 ;
31
+ } else {
32
+ pub const PTHREAD_STACK_MIN : :: size_t = 131072 ;
33
+ }
34
+ }
25
35
26
36
extern {
27
37
pub fn sysctl ( name : * mut :: c_int ,
You can’t perform that action at this time.
0 commit comments