@@ -13,6 +13,7 @@ pub struct TestOpts {
1313 pub list : bool ,
1414 pub filter : Option < String > ,
1515 pub filter_exact : bool ,
16+ pub force_run_in_process : bool ,
1617 pub exclude_should_panic : bool ,
1718 pub run_ignored : RunIgnored ,
1819 pub run_tests : bool ,
@@ -46,6 +47,7 @@ fn optgroups() -> getopts::Options {
4647 let mut opts = getopts:: Options :: new ( ) ;
4748 opts. optflag ( "" , "include-ignored" , "Run ignored and not ignored tests" )
4849 . optflag ( "" , "ignored" , "Run only ignored tests" )
50+ . optflag ( "" , "force-run-in-process" , "Forces tests to run in-process when panic=abort" )
4951 . optflag ( "" , "exclude-should-panic" , "Excludes tests marked as should_panic" )
5052 . optflag ( "" , "test" , "Run tests and not benchmarks" )
5153 . optflag ( "" , "bench" , "Run benchmarks instead of tests" )
@@ -233,6 +235,7 @@ fn parse_opts_impl(matches: getopts::Matches) -> OptRes {
233235 let allow_unstable = get_allow_unstable ( & matches) ?;
234236
235237 // Unstable flags
238+ let force_run_in_process = unstable_optflag ! ( matches, allow_unstable, "force-run-in-process" ) ;
236239 let exclude_should_panic = unstable_optflag ! ( matches, allow_unstable, "exclude-should-panic" ) ;
237240 let include_ignored = unstable_optflag ! ( matches, allow_unstable, "include-ignored" ) ;
238241 let time_options = get_time_options ( & matches, allow_unstable) ?;
@@ -259,6 +262,7 @@ fn parse_opts_impl(matches: getopts::Matches) -> OptRes {
259262 list,
260263 filter,
261264 filter_exact : exact,
265+ force_run_in_process,
262266 exclude_should_panic,
263267 run_ignored,
264268 run_tests,
0 commit comments