Skip to content

Commit

Permalink
Ignores tests requiring UBLK_F_USER_COPY
Browse files Browse the repository at this point in the history
They requires privileges since Linux 6.12.

See: torvalds/linux@42aafd8
  • Loading branch information
oxalica committed Dec 8, 2024
1 parent 1207ba5 commit 8158fe7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions orb-ublk/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,9 @@ fn stop(
#[rstest]
#[case::default_local(FeatureFlags::empty(), 1)]
#[case::default_threaded(FeatureFlags::empty(), 2)]
#[ignore = "user copy requires privileges"]
#[case::user_copy_local(FeatureFlags::UserCopy, 1)]
#[ignore = "user copy requires privileges"]
#[case::user_copy_threaded(FeatureFlags::UserCopy, 2)]
fn read_write(ctl: ControlDevice, #[case] flags: FeatureFlags, #[case] queues: u16) {
const SIZE_SECTORS: Sector = Sector::from_bytes(32 << 10);
Expand Down Expand Up @@ -538,7 +540,9 @@ fn handler_panic(ctl: ControlDevice, #[case] queues: u16) {
#[rstest]
#[case::default_local(FeatureFlags::empty(), 1)]
#[case::default_threaded(FeatureFlags::empty(), 2)]
#[ignore = "user copy requires privileges"]
#[case::user_copy_local(FeatureFlags::UserCopy, 1)]
#[ignore = "user copy requires privileges"]
#[case::user_copy_threaded(FeatureFlags::UserCopy, 2)]
fn tokio_null(ctl: ControlDevice, #[case] flags: FeatureFlags, #[case] queues: u16) {
const SIZE_SECTORS: Sector = Sector::from_bytes(4 << 10);
Expand Down Expand Up @@ -711,6 +715,7 @@ fn discard(ctl: ControlDevice) {
}

#[rstest]
#[ignore = "user copy requires privileges"]
fn zoned(ctl: ControlDevice) {
const SIZE_SECTORS: Sector = Sector::from_bytes(4 << 10);
const ZONE_SECTORS: Sector = Sector::from_bytes(1 << 10);
Expand Down

0 comments on commit 8158fe7

Please sign in to comment.