mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
irqchip: disable flaky unit tests
Disable tests which rely on sleep for correctness. BUG=b:237977699 TEST=kokoro Change-Id: I37f467f5385de4e70c31f5ce7c815d3ba4dd83d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3740226 Commit-Queue: David Stevens <stevensd@chromium.org> Reviewed-by: Junichi Uekawa <uekawa@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
264c805f04
commit
4a62a8ee3f
1 changed files with 8 additions and 3 deletions
|
@ -985,6 +985,8 @@ impl std::error::Error for TimerWorkerError {}
|
|||
|
||||
type TimerWorkerResult<T> = std::result::Result<T, TimerWorkerError>;
|
||||
|
||||
// TODO(b/237977699): remove once test are re-enabled.
|
||||
#[allow(unused)]
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::super::tests::*;
|
||||
|
@ -1516,7 +1518,8 @@ mod tests {
|
|||
assert_eq!(data, [0, 0, 0, 1]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
// TODO(b/237977699): remove reliance on sleep
|
||||
// #[test]
|
||||
fn runnable_vcpu_unhalts() {
|
||||
let chip = get_chip(1);
|
||||
let vcpu = get_vcpus(&chip).remove(0);
|
||||
|
@ -1542,7 +1545,8 @@ mod tests {
|
|||
handle.join().unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
// TODO(b/237977699): remove reliance on sleep
|
||||
// #[test]
|
||||
fn kicked_vcpu_unhalts() {
|
||||
let chip = get_chip(1);
|
||||
let vcpu = get_vcpus(&chip).remove(0);
|
||||
|
@ -1563,7 +1567,8 @@ mod tests {
|
|||
handle.join().unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
// TODO(b/237977699): remove reliance on sleep
|
||||
// #[test]
|
||||
fn apic_timer() {
|
||||
let clock = Arc::new(Mutex::new(Clock::new()));
|
||||
let mut chip = get_chip_with_clock(2, clock.clone());
|
||||
|
|
Loading…
Reference in a new issue