Skip to content

Commit

Permalink
try to fix clocs test
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Nov 18, 2023
1 parent c1e48a9 commit 175eeb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shims/unix/freebsd/foreign_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
}
"ftruncate" => {
if this.tcx.sess.target.pointer_width == 32 {
throw_unsup_format!("`ftruncate` is not supported on 32 bits",);
throw_unsup_format!("`ftruncate` is not supported on 32 bits");
}
let [fd, length] =
this.check_shim(abi, Abi::C { unwind: false }, link_name, args)?;
Expand Down
4 changes: 2 additions & 2 deletions tests/pass-dep/shims/libc-misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ fn test_thread_local_errno() {
}

/// Tests whether clock support exists at all
#[cfg(not(target_os = "freebsd"))]
//#[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()) };

Check failure on line 178 in tests/pass-dep/shims/libc-misc.rs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, x86_64-unknown-linux-gnu)

Unmatched diagnostics

Error: unsupported operation: `clock_gettime` is not supported on target OS freebsd
Expand Down Expand Up @@ -417,7 +417,7 @@ fn main() {

test_isatty();

#[cfg(not(target_os = "freebsd"))] // FIXME we should support this on FreeBSD as well
//#[cfg(not(target_os = "freebsd"))] // FIXME we should support this on FreeBSD as well
test_clocks();

test_dlsym();
Expand Down

0 comments on commit 175eeb8

Please sign in to comment.