mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
make libc-misc pass under FreeBSD
This commit is contained in:
parent
7338c55052
commit
6985431923
@ -108,7 +108,7 @@ case $HOST_TARGET in
|
||||
MIRI_TEST_TARGET=aarch64-unknown-linux-gnu run_tests
|
||||
MIRI_TEST_TARGET=aarch64-apple-darwin run_tests
|
||||
MIRI_TEST_TARGET=i686-pc-windows-gnu run_tests
|
||||
MIRI_TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal hello integer vec panic/panic concurrency/simple pthreads-threadname libc-getentropy libc-getrandom libc-reallocarray atomic env/var
|
||||
MIRI_TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal hello integer vec panic/panic concurrency/simple pthreads-threadname libc-getentropy libc-getrandom libc-reallocarray libc-misc atomic env/var
|
||||
MIRI_TEST_TARGET=aarch64-linux-android run_tests_minimal hello integer vec panic/panic
|
||||
MIRI_TEST_TARGET=wasm32-wasi run_tests_minimal no_std integer strings wasm
|
||||
MIRI_TEST_TARGET=wasm32-unknown-unknown run_tests_minimal no_std integer strings wasm
|
||||
|
@ -172,6 +172,7 @@ fn test_thread_local_errno() {
|
||||
}
|
||||
|
||||
/// Tests whether clock support exists at all
|
||||
#[cfg(not(target_os = "freebsd"))]
|
||||
fn test_clocks() {
|
||||
let mut tp = std::mem::MaybeUninit::<libc::timespec>::uninit();
|
||||
let is_error = unsafe { libc::clock_gettime(libc::CLOCK_REALTIME, tp.as_mut_ptr()) };
|
||||
@ -237,6 +238,7 @@ fn test_isatty() {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "freebsd"))]
|
||||
fn test_posix_mkstemp() {
|
||||
use std::ffi::CString;
|
||||
use std::ffi::OsStr;
|
||||
@ -390,6 +392,8 @@ fn test_dlsym() {
|
||||
|
||||
fn main() {
|
||||
test_posix_gettimeofday();
|
||||
|
||||
#[cfg(not(target_os = "freebsd"))] // FIXME we should support this on FreeBSD as well
|
||||
test_posix_mkstemp();
|
||||
|
||||
test_posix_realpath_alloc();
|
||||
@ -399,7 +403,10 @@ fn main() {
|
||||
test_thread_local_errno();
|
||||
|
||||
test_isatty();
|
||||
|
||||
#[cfg(not(target_os = "freebsd"))] // FIXME we should support this on FreeBSD as well
|
||||
test_clocks();
|
||||
|
||||
test_dlsym();
|
||||
|
||||
test_memcpy();
|
||||
|
Loading…
Reference in New Issue
Block a user