Try fixing test on i686-unknown-linux-gnu
This commit is contained in:
parent
b2d404d19a
commit
2a2dde1494
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
extern crate libc;
|
||||
|
||||
use std::convert::TryInto;
|
||||
use std::env::temp_dir;
|
||||
use std::fs::{File, remove_file};
|
||||
use std::io::Write;
|
||||
|
|
@ -25,7 +26,7 @@ fn main() {
|
|||
libc::posix_fadvise(
|
||||
file.as_raw_fd(),
|
||||
0,
|
||||
bytes.len() as i64,
|
||||
bytes.len().try_into().unwrap(),
|
||||
libc::POSIX_FADV_DONTNEED,
|
||||
)
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue