-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skip failing tests for Linux/MIPS/PowerPC #590
Changes from all commits
b1d9231
284d69a
2b53c76
33d2a05
07b2eb5
41dbfae
0332f83
280721a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ fn poll_aio(mut aiocb: &mut AioCb) -> Result<()> { | |
// bindings. So it's sufficient to check that AioCb.cancel returned any | ||
// AioCancelStat value. | ||
#[test] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So all of these tests fail in x86_64 musl but pass in i686 musl? Weird. Does cross use qemu to run i686 tests? I would think that it wouldn't need to. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You bring up a good point. i don't think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But I've filed an issue (cross-rs/cross#107) in order for this to be made more clear. |
||
fn test_cancel() { | ||
let wbuf: &'static [u8] = b"CDEF"; | ||
|
||
|
@@ -50,6 +51,7 @@ fn test_cancel() { | |
|
||
// Tests using aio_cancel_all for all outstanding IOs. | ||
#[test] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_aio_cancel_all() { | ||
let wbuf: &'static [u8] = b"CDEF"; | ||
|
||
|
@@ -73,6 +75,7 @@ fn test_aio_cancel_all() { | |
} | ||
|
||
#[test] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_fsync() { | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
let mut f = tempfile().unwrap(); | ||
|
@@ -88,6 +91,7 @@ fn test_fsync() { | |
|
||
|
||
#[test] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_aio_suspend() { | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
const WBUF: &'static [u8] = b"CDEF"; | ||
|
@@ -129,6 +133,7 @@ fn test_aio_suspend() { | |
// Test a simple aio operation with no completion notification. We must poll | ||
// for completion | ||
#[test] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_read() { | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
let rbuf = Rc::new(vec![0; 4].into_boxed_slice()); | ||
|
@@ -154,6 +159,7 @@ fn test_read() { | |
|
||
// Tests from_mut_slice | ||
#[test] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_read_into_mut_slice() { | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
let mut rbuf = vec![0; 4]; | ||
|
@@ -178,8 +184,10 @@ fn test_read_into_mut_slice() { | |
} | ||
|
||
// Test reading into an immutable buffer. It should fail | ||
// FIXME: This test fails to panic on Linux/musl | ||
#[test] | ||
#[should_panic(expected = "Can't read into an immutable buffer")] | ||
#[cfg_attr(target_env = "musl", ignore)] | ||
fn test_read_immutable_buffer() { | ||
let rbuf: &'static [u8] = b"CDEF"; | ||
let f = tempfile().unwrap(); | ||
|
@@ -196,6 +204,7 @@ fn test_read_immutable_buffer() { | |
// Test a simple aio operation with no completion notification. We must poll | ||
// for completion. Unlike test_aio_read, this test uses AioCb::from_slice | ||
#[test] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_write() { | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
let wbuf = "CDEF".to_string().into_bytes(); | ||
|
@@ -233,7 +242,9 @@ extern fn sigfunc(_: c_int) { | |
} | ||
|
||
// Test an aio operation with completion delivered by a signal | ||
// FIXME: This test is ignored on mips because of failures in qemu in CI | ||
#[test] | ||
#[cfg_attr(any(all(target_env = "musl", target_arch = "x86_64"), target_arch = "mips"), ignore)] | ||
fn test_write_sigev_signal() { | ||
let _ = SIGUSR2_MTX.lock().expect("Mutex got poisoned by another test"); | ||
let sa = SigAction::new(SigHandler::Handler(sigfunc), | ||
|
@@ -274,6 +285,7 @@ fn test_write_sigev_signal() { | |
// lio_listio returns. | ||
#[test] | ||
#[cfg(not(any(target_os = "ios", target_os = "macos")))] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_lio_listio_wait() { | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
const WBUF: &'static [u8] = b"CDEF"; | ||
|
@@ -316,6 +328,7 @@ fn test_lio_listio_wait() { | |
// mechanism to check for the individual AioCb's completion. | ||
#[test] | ||
#[cfg(not(any(target_os = "ios", target_os = "macos")))] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_lio_listio_nowait() { | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
const WBUF: &'static [u8] = b"CDEF"; | ||
|
@@ -358,8 +371,10 @@ fn test_lio_listio_nowait() { | |
|
||
// Test lio_listio with LIO_NOWAIT and a SigEvent to indicate when all AioCb's | ||
// are complete. | ||
// FIXME: This test is ignored on mips because of failures in qemu in CI. | ||
#[test] | ||
#[cfg(not(any(target_os = "ios", target_os = "macos")))] | ||
#[cfg_attr(any(target_arch = "mips", target_env = "musl"), ignore)] | ||
fn test_lio_listio_signal() { | ||
let _ = SIGUSR2_MTX.lock().expect("Mutex got poisoned by another test"); | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
|
@@ -410,9 +425,11 @@ fn test_lio_listio_signal() { | |
} | ||
|
||
// Try to use lio_listio to read into an immutable buffer. It should fail | ||
// FIXME: This test fails to panic on Linux/musl | ||
#[test] | ||
#[cfg(not(any(target_os = "ios", target_os = "macos")))] | ||
#[should_panic(expected = "Can't read into an immutable buffer")] | ||
#[cfg_attr(target_env = "musl", ignore)] | ||
fn test_lio_listio_read_immutable() { | ||
let rbuf: &'static [u8] = b"abcd"; | ||
let f = tempfile().unwrap(); | ||
|
@@ -430,6 +447,7 @@ fn test_lio_listio_read_immutable() { | |
// Test dropping an AioCb that hasn't yet finished. Behind the scenes, the | ||
// library should wait for the AioCb's completion. | ||
#[test] | ||
#[cfg_attr(all(target_env = "musl", target_arch = "x86_64"), ignore)] | ||
fn test_drop() { | ||
const INITIAL: &'static [u8] = b"abcdef123456"; | ||
const WBUF: &'static [u8] = b"CDEF"; //"CDEF".to_string().into_bytes(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason not to use a default rust value? It makes the matrix section more duplicative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use the default, you end up with an "extra" test run. You can see how there's two
x86-64-unknown-linux-gnu
runs that execute right now. This fixes that problem. Looks like I didn't specify that in the commit message, which I can do.