Lines Matching +full:test +full:- +full:beta
10 #[test]
12 prepare_stderr_files("tests/compile-fail").unwrap(); in fail()
15 t.compile_fail("tests/compile-fail/**/*.rs"); in fail()
18 #[test]
21 t.pass("tests/compile-pass/**/*.rs"); in pass()
26 // having some message to check makes sure user-facing errors are sensical.
28 // The approach we use is to run the test on all compilers, but only check stderr
29 // output on beta (which is the next stable release). We do this by default ignoring
30 // any `.stderr` files in the `compile-fail` directory, and copying `.stderr.beta` files
31 // when we happen to be running on a beta compiler.
32 fn prepare_stderr_files(path: impl AsRef<Path>) -> io::Result<()> { in prepare_stderr_files()
36 if entry.path().extension().and_then(OsStr::to_str) == Some("beta") { in prepare_stderr_files()
39 // Unconditionally remove a corresponding `.stderr` file for a `.stderr.beta` in prepare_stderr_files()
40 // file if it exists. On `beta` compilers, we'll recreate it. On other compilers, in prepare_stderr_files()
53 #[rustversion::beta]
54 fn rename_beta_stderr(from: impl AsRef<Path>, to: impl AsRef<Path>) -> io::Result<()> { in rename_beta_stderr()
60 #[rustversion::not(beta)]
61 fn rename_beta_stderr(_: impl AsRef<Path>, _: impl AsRef<Path>) -> io::Result<()> { in rename_beta_stderr()