@@ -13,6 +13,7 @@ pub struct TestOpts {
13
13
pub list : bool ,
14
14
pub filter : Option < String > ,
15
15
pub filter_exact : bool ,
16
+ pub force_run_in_process : bool ,
16
17
pub exclude_should_panic : bool ,
17
18
pub run_ignored : RunIgnored ,
18
19
pub run_tests : bool ,
@@ -46,6 +47,7 @@ fn optgroups() -> getopts::Options {
46
47
let mut opts = getopts:: Options :: new ( ) ;
47
48
opts. optflag ( "" , "include-ignored" , "Run ignored and not ignored tests" )
48
49
. optflag ( "" , "ignored" , "Run only ignored tests" )
50
+ . optflag ( "" , "force-run-in-process" , "Forces tests to run in-process when panic=abort" )
49
51
. optflag ( "" , "exclude-should-panic" , "Excludes tests marked as should_panic" )
50
52
. optflag ( "" , "test" , "Run tests and not benchmarks" )
51
53
. optflag ( "" , "bench" , "Run benchmarks instead of tests" )
@@ -233,6 +235,7 @@ fn parse_opts_impl(matches: getopts::Matches) -> OptRes {
233
235
let allow_unstable = get_allow_unstable ( & matches) ?;
234
236
235
237
// Unstable flags
238
+ let force_run_in_process = unstable_optflag ! ( matches, allow_unstable, "force-run-in-process" ) ;
236
239
let exclude_should_panic = unstable_optflag ! ( matches, allow_unstable, "exclude-should-panic" ) ;
237
240
let include_ignored = unstable_optflag ! ( matches, allow_unstable, "include-ignored" ) ;
238
241
let time_options = get_time_options ( & matches, allow_unstable) ?;
@@ -259,6 +262,7 @@ fn parse_opts_impl(matches: getopts::Matches) -> OptRes {
259
262
list,
260
263
filter,
261
264
filter_exact : exact,
265
+ force_run_in_process,
262
266
exclude_should_panic,
263
267
run_ignored,
264
268
run_tests,
0 commit comments