Skip to content

Commit a448dc4

Browse files
committed
fix!: Remove unstable --force-run-in-process
1 parent 740ea09 commit a448dc4

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

crates/libtest-lexarg/src/lib.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pub struct TestOpts {
2424
pub list: bool,
2525
pub filters: Vec<String>,
2626
pub filter_exact: bool,
27-
pub force_run_in_process: bool,
2827
pub run_ignored: RunIgnored,
2928
pub run_tests: bool,
3029
pub bench_benchmarks: bool,
@@ -193,8 +192,6 @@ Options:
193192
--include-ignored
194193
Run ignored and not ignored tests
195194
--ignored Run only ignored tests
196-
--force-run-in-process
197-
Forces tests to run in-process when panic=abort
198195
--test Run tests and not benchmarks
199196
--bench Run benchmarks instead of tests
200197
--list List all tests and benchmarks
@@ -315,9 +312,6 @@ impl TestOptsBuilder {
315312
self.include_ignored = true;
316313
}
317314
Long("ignored") => self.ignored = true,
318-
Long("force-run-in-process") => {
319-
self.opts.force_run_in_process = true;
320-
}
321315
Long("test") => {
322316
self.opts.run_tests = true;
323317
}
@@ -443,12 +437,6 @@ impl TestOptsBuilder {
443437
.iter()
444438
.any(|f| f == UNSTABLE_OPTIONS);
445439

446-
if self.opts.force_run_in_process && !allow_unstable_options {
447-
return Err(ErrorContext::msg(
448-
"`--force-run-in-process` requires `-Zunstable-options`",
449-
));
450-
}
451-
452440
if self.opts.shuffle && !allow_unstable_options {
453441
return Err(ErrorContext::msg(
454442
"`--shuffle` requires `-Zunstable-options`",

crates/libtest2-harness/src/harness.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,6 @@ fn run(
221221
notifier.notify(notify::Event::SuiteStart)?;
222222
let timer = std::time::Instant::now();
223223

224-
if opts.force_run_in_process {
225-
todo!("`--force-run-in-process` is not yet supported");
226-
}
227224
if opts.nocapture {
228225
todo!("`--nocapture` is not yet supported");
229226
}

0 commit comments

Comments
 (0)