Fix failing CI (#130)

- Disable async-io tests for wine
- Fix errant cast in Android

Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
John Nunley 2023-08-05 08:17:53 -07:00 committed by GitHub
parent 53793382a7
commit 49152081d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -111,14 +111,6 @@ jobs:
target: x86_64-pc-windows-gnu
runner: wine@7.13
- run: cargo test --target x86_64-pc-windows-gnu
- name: Clone async-io
run: git clone https://github.com/smol-rs/async-io.git
- name: Add patch section
run: echo '[patch.crates-io]' >> async-io/Cargo.toml
- name: Patch polling
run: echo 'polling = { path = ".." }' >> async-io/Cargo.toml
- name: Test async-io
run: cargo test --manifest-path=async-io/Cargo.toml
msrv:
runs-on: ${{ matrix.os }}

View File

@ -164,7 +164,7 @@ impl Poller {
None => TS_ZERO,
Some(t) => {
let mut ts = TS_ZERO;
ts.tv_sec = t.as_secs() as libc::time_t;
ts.tv_sec = t.as_secs() as _;
ts.tv_nsec = (t.subsec_nanos() as libc::c_long).into();
ts
}