@@ -25,7 +25,6 @@ enum TestKind {
2525 KnownFailure ,
2626 KnownPanic ,
2727 Skip ,
28- Unspecified ,
2928}
3029
3130struct MagicComments {
@@ -40,7 +39,7 @@ struct MagicComments {
4039
4140static HELP_STRING : & str = unindent ! (
4241 "Options are:
43- - `//@ output=pretty-llbc`: record the pretty-printed llbc;
42+ - `//@ output=pretty-llbc`: record the pretty-printed llbc (default) ;
4443 - `//@ known-failure`: a test that is expected to fail.
4544 - `//@ known-panic`: a test that is expected to panic.
4645 - `//@ skip`: skip the test.
@@ -56,7 +55,7 @@ static HELP_STRING: &str = unindent!(
5655fn parse_magic_comments ( input_path : & std:: path:: Path ) -> anyhow:: Result < MagicComments > {
5756 // Parse the magic comments.
5857 let mut comments = MagicComments {
59- test_kind : TestKind :: Unspecified ,
58+ test_kind : TestKind :: PrettyLlbc ,
6059 cli_opts : CliOpts :: default ( ) ,
6160 check_output : true ,
6261 auxiliary_crates : Vec :: new ( ) ,
@@ -141,10 +140,6 @@ fn path_to_crate_name(path: &Path) -> Option<String> {
141140}
142141
143142fn perform_test ( test_case : & Case , action : Action ) -> anyhow:: Result < ( ) > {
144- if matches ! ( test_case. magic_comments. test_kind, TestKind :: Unspecified ) {
145- bail ! ( "Test must start with a magic comment that determines its kind. {HELP_STRING}" ) ;
146- }
147-
148143 // Dependencies
149144 // Vec of (crate name, path to crate.rs, path to libcrate.rlib).
150145 let deps: Vec < ( String , PathBuf , String ) > = test_case
@@ -216,7 +211,7 @@ fn perform_test(test_case: &Case, action: Action) -> anyhow::Result<()> {
216211 bail ! ( "Compilation failed: {stderr}" )
217212 }
218213 }
219- TestKind :: Skip | TestKind :: Unspecified => unreachable ! ( ) ,
214+ TestKind :: Skip => unreachable ! ( ) ,
220215 }
221216 if test_case. magic_comments . check_output {
222217 let actual = snapbox:: Data :: text ( stderr) . map_text ( snapbox:: utils:: normalize_lines) ;
0 commit comments