mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
Trying to fix failures in build-mac tests
This commit is contained in:
parent
1ba8ebb2b1
commit
2ee910416d
@ -91,6 +91,9 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
export PATH="`pwd`/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin:$PATH"
|
export PATH="`pwd`/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin:$PATH"
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
# We increase the ulimit for fixing cargo unclosed files in mac
|
||||||
|
ulimit -n 8000
|
||||||
|
sudo sysctl -w kern.maxfiles=655360 kern.maxfilesperproc=327680
|
||||||
make test
|
make test
|
||||||
make lint
|
make lint
|
||||||
- run:
|
- run:
|
||||||
|
@ -852,15 +852,6 @@ pub extern "C" fn ___syscall197(
|
|||||||
0
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
// /// fcntl64
|
|
||||||
// pub extern "C" fn ___syscall221(_which: c_int, mut varargs: VarArgs, instance: &mut Instance) -> c_int {
|
|
||||||
// debug!("emscripten::___syscall221");
|
|
||||||
// let fd: i32 = varargs.get(instance);
|
|
||||||
// let cmd: i32 = varargs.get(instance);
|
|
||||||
// debug!("fd: {}, cmd: {}", fd, cmd);
|
|
||||||
// unsafe { fcntl(fd, cmd) }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// getgid
|
// getgid
|
||||||
pub extern "C" fn ___syscall201() -> gid_t {
|
pub extern "C" fn ___syscall201() -> gid_t {
|
||||||
debug!("emscripten::___syscall201 (getgid)");
|
debug!("emscripten::___syscall201 (getgid)");
|
||||||
|
@ -43,6 +43,8 @@ fn read_file_contents(path: &PathBuf) -> Result<Vec<u8>, io::Error> {
|
|||||||
let mut buffer: Vec<u8> = Vec::new();
|
let mut buffer: Vec<u8> = Vec::new();
|
||||||
let mut file = File::open(path)?;
|
let mut file = File::open(path)?;
|
||||||
file.read_to_end(&mut buffer)?;
|
file.read_to_end(&mut buffer)?;
|
||||||
|
// We force to close the file
|
||||||
|
drop(file);
|
||||||
Ok(buffer)
|
Ok(buffer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user