Skip to content

Commit 949110b

Browse files
committed
Don't run VPIO tests in parallel
The platform is too buggy with races and hangs to be able to run in parallel.
1 parent 4be51c4 commit 949110b

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

run_tests.sh

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ cargo test test_ops_timing_sensitive -- --ignored --test-threads=1
4646
# Parallel Tests
4747
cargo test test_parallel -- --ignored --nocapture --test-threads=1
4848

49+
# VPIO Tests
50+
cargo test voice -- --ignored --test-threads=1
51+
4952
# Device-changed Tests
5053
sh run_device_tests.sh
5154

src/backend/tests/api.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,7 @@ fn get_devices_changed_callback(
16651665
// SharedVoiceProcessingUnit
16661666
// ------------------------------------
16671667
#[test]
1668+
#[ignore]
16681669
fn test_shared_voice_processing_unit() {
16691670
let mut shared =
16701671
SharedVoiceProcessingUnit::new(Queue::new("test_shared_voice_processing_unit"));
@@ -1681,6 +1682,7 @@ fn test_shared_voice_processing_unit() {
16811682
}
16821683

16831684
#[test]
1685+
#[ignore]
16841686
fn test_shared_voice_processing_unit_after_priming() {
16851687
let mut shared = SharedVoiceProcessingUnit::new(Queue::new(
16861688
"test_shared_voice_processing_unit_after_priming",
@@ -1690,6 +1692,7 @@ fn test_shared_voice_processing_unit_after_priming() {
16901692
}
16911693

16921694
#[test]
1695+
#[ignore]
16931696
#[should_panic]
16941697
fn test_shared_voice_processing_unit_bad_release_order() {
16951698
let mut shared = SharedVoiceProcessingUnit::new(Queue::new(

src/backend/tests/interfaces.rs

+15
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ fn test_ops_stereo_input_duplex_stream_stop() {
10441044
}
10451045

10461046
#[test]
1047+
#[ignore]
10471048
fn test_ops_duplex_voice_stream_init_and_destroy() {
10481049
test_default_duplex_voice_stream_operation("duplex voice stream: init and destroy", |stream| {
10491050
let stm = unsafe { &mut *(stream as *mut AudioUnitStream) };
@@ -1052,6 +1053,7 @@ fn test_ops_duplex_voice_stream_init_and_destroy() {
10521053
}
10531054

10541055
#[test]
1056+
#[ignore]
10551057
fn test_ops_duplex_voice_stream_start() {
10561058
test_default_duplex_voice_stream_operation("duplex voice stream: start", |stream| {
10571059
assert_eq!(unsafe { OPS.stream_start.unwrap()(stream) }, ffi::CUBEB_OK);
@@ -1061,6 +1063,7 @@ fn test_ops_duplex_voice_stream_start() {
10611063
}
10621064

10631065
#[test]
1066+
#[ignore]
10641067
fn test_ops_duplex_voice_stream_stop() {
10651068
test_default_duplex_voice_stream_operation("duplex voice stream: stop", |stream| {
10661069
assert_eq!(unsafe { OPS.stream_stop.unwrap()(stream) }, ffi::CUBEB_OK);
@@ -1107,6 +1110,7 @@ fn test_ops_timing_sensitive_duplex_voice_stream_with_primer() {
11071110
}
11081111

11091112
#[test]
1113+
#[ignore]
11101114
fn test_ops_duplex_voice_stream_while_priming() {
11111115
test_ops_context_operation("duplex voice stream while priming", |context_ptr| {
11121116
// First stream doesn't prefer voice, so should be quick. Primes async the vpio.
@@ -1273,6 +1277,7 @@ fn test_ops_timing_sensitive_multiple_duplex_voice_stream_params() {
12731277
}
12741278

12751279
#[test]
1280+
#[ignore]
12761281
fn test_ops_duplex_voice_stream_set_input_mute() {
12771282
test_default_duplex_voice_stream_operation("duplex voice stream: mute", |stream| {
12781283
assert_eq!(
@@ -1285,6 +1290,7 @@ fn test_ops_duplex_voice_stream_set_input_mute() {
12851290
}
12861291

12871292
#[test]
1293+
#[ignore]
12881294
fn test_ops_duplex_voice_stream_set_input_mute_before_start() {
12891295
test_default_duplex_voice_stream_operation(
12901296
"duplex voice stream: mute before start",
@@ -1301,6 +1307,7 @@ fn test_ops_duplex_voice_stream_set_input_mute_before_start() {
13011307
}
13021308

13031309
#[test]
1310+
#[ignore]
13041311
fn test_ops_duplex_voice_stream_set_input_mute_before_start_with_reinit() {
13051312
test_default_duplex_voice_stream_operation(
13061313
"duplex voice stream: mute before start with reinit",
@@ -1336,6 +1343,7 @@ fn test_ops_duplex_voice_stream_set_input_mute_before_start_with_reinit() {
13361343
}
13371344

13381345
#[test]
1346+
#[ignore]
13391347
fn test_ops_duplex_voice_stream_set_input_mute_after_start() {
13401348
test_default_duplex_voice_stream_operation("duplex voice stream: mute after start", |stream| {
13411349
assert_eq!(unsafe { OPS.stream_start.unwrap()(stream) }, ffi::CUBEB_OK);
@@ -1349,6 +1357,7 @@ fn test_ops_duplex_voice_stream_set_input_mute_after_start() {
13491357
}
13501358

13511359
#[test]
1360+
#[ignore]
13521361
fn test_ops_duplex_voice_stream_set_input_processing_params() {
13531362
test_default_duplex_voice_stream_operation("duplex voice stream: processing", |stream| {
13541363
let params: ffi::cubeb_input_processing_params =
@@ -1365,6 +1374,7 @@ fn test_ops_duplex_voice_stream_set_input_processing_params() {
13651374
}
13661375

13671376
#[test]
1377+
#[ignore]
13681378
fn test_ops_duplex_voice_stream_set_input_processing_params_before_start() {
13691379
test_default_duplex_voice_stream_operation(
13701380
"duplex voice stream: processing before start",
@@ -1385,6 +1395,7 @@ fn test_ops_duplex_voice_stream_set_input_processing_params_before_start() {
13851395
}
13861396

13871397
#[test]
1398+
#[ignore]
13881399
fn test_ops_duplex_voice_stream_set_input_processing_params_before_start_with_reinit() {
13891400
test_default_duplex_voice_stream_operation(
13901401
"duplex voice stream: processing before start with reinit",
@@ -1445,6 +1456,7 @@ fn test_ops_duplex_voice_stream_set_input_processing_params_before_start_with_re
14451456
}
14461457

14471458
#[test]
1459+
#[ignore]
14481460
fn test_ops_duplex_voice_stream_set_input_processing_params_after_start() {
14491461
test_default_duplex_voice_stream_operation(
14501462
"duplex voice stream: processing after start",
@@ -1465,6 +1477,7 @@ fn test_ops_duplex_voice_stream_set_input_processing_params_after_start() {
14651477
}
14661478

14671479
#[test]
1480+
#[ignore]
14681481
fn test_ops_stereo_input_duplex_voice_stream_init_and_destroy() {
14691482
test_stereo_input_duplex_voice_stream_operation(
14701483
"stereo-input duplex voice stream: init and destroy",
@@ -1476,6 +1489,7 @@ fn test_ops_stereo_input_duplex_voice_stream_init_and_destroy() {
14761489
}
14771490

14781491
#[test]
1492+
#[ignore]
14791493
fn test_ops_stereo_input_duplex_voice_stream_start() {
14801494
test_stereo_input_duplex_voice_stream_operation(
14811495
"stereo-input duplex voice stream: start",
@@ -1488,6 +1502,7 @@ fn test_ops_stereo_input_duplex_voice_stream_start() {
14881502
}
14891503

14901504
#[test]
1505+
#[ignore]
14911506
fn test_ops_stereo_input_duplex_voice_stream_stop() {
14921507
test_stereo_input_duplex_voice_stream_operation(
14931508
"stereo-input duplex voice stream: stop",

0 commit comments

Comments
 (0)