Skip to content

Commit ab8836f

Browse files
authored
Merge pull request #4240 from RalfJung/aarch64-linux-android
run a few more concurrency tests on aarch64-linux-android
2 parents 40bb7d1 + c845ff0 commit ab8836f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/tools/miri/ci/ci.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ case $HOST_TARGET in
166166
UNIX="hello panic/panic panic/unwind concurrency/simple atomic libc-mem libc-misc libc-random env num_cpus" # the things that are very similar across all Unixes, and hence easily supported there
167167
TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal $BASIC $UNIX time hashmap random threadname pthread fs libc-pipe
168168
TEST_TARGET=i686-unknown-freebsd run_tests_minimal $BASIC $UNIX time hashmap random threadname pthread fs libc-pipe
169-
TEST_TARGET=aarch64-linux-android run_tests_minimal $BASIC $UNIX time hashmap random sync threadname pthread epoll eventfd
169+
TEST_TARGET=aarch64-linux-android run_tests_minimal $BASIC $UNIX time hashmap random sync concurrency thread epoll eventfd
170170
TEST_TARGET=wasm32-wasip2 run_tests_minimal $BASIC wasm
171171
TEST_TARGET=wasm32-unknown-unknown run_tests_minimal no_std empty_main wasm # this target doesn't really have std
172172
TEST_TARGET=thumbv7em-none-eabihf run_tests_minimal no_std

src/tools/miri/tests/pass-dep/concurrency/linux-futex.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn wait_wrong_val() {
6464
),
6565
-1,
6666
);
67-
assert_eq!(*libc::__errno_location(), libc::EAGAIN);
67+
assert_eq!(io::Error::last_os_error().raw_os_error().unwrap(), libc::EAGAIN);
6868
}
6969
}
7070

@@ -85,7 +85,7 @@ fn wait_timeout() {
8585
),
8686
-1,
8787
);
88-
assert_eq!(*libc::__errno_location(), libc::ETIMEDOUT);
88+
assert_eq!(io::Error::last_os_error().raw_os_error().unwrap(), libc::ETIMEDOUT);
8989
}
9090

9191
assert!((200..1000).contains(&start.elapsed().as_millis()));
@@ -124,7 +124,7 @@ fn wait_absolute_timeout() {
124124
),
125125
-1,
126126
);
127-
assert_eq!(*libc::__errno_location(), libc::ETIMEDOUT);
127+
assert_eq!(io::Error::last_os_error().raw_os_error().unwrap(), libc::ETIMEDOUT);
128128
}
129129

130130
assert!((200..1000).contains(&start.elapsed().as_millis()));

0 commit comments

Comments
 (0)