diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ed3c9d2..9965b4a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -33,9 +33,12 @@ jobs: run: cargo test --verbose - name: Run tests (Linux 4.14 support) run: cargo test --verbose --features linux4_14 - - name: Run tests (Linux 5.7 support) run: cargo test --verbose --features linux5_7 + - name: Run tests (Linux 5.13 support) + run: cargo test --verbose --features linux5_13 + - name: Run tests (Linux 5.7 and 5.13 support) + run: cargo test --verbose --features linux5_7,linux5_13 audit: diff --git a/src/lib.rs b/src/lib.rs index 59c2ce8..cb49963 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -692,6 +692,9 @@ mod test { uffd.write_protect(mapping, PAGE_SIZE)?; uffd.wake(mapping, PAGE_SIZE)?; } + // The mapping is not registered in minor mode. + #[cfg(feature = "linux5_13")] + FaultKind::Minor => panic!("unexpected minor fault"), }, _ => panic!("unexpected event"), }