diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-05-08 18:04:43 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-05-08 18:05:08 -0700 |
| commit | 47742807f7c4078d8f78d752b647239b6b136117 (patch) | |
| tree | 709b3f272595e64bfea7410ace2d05060a0a44c5 /src/test | |
| parent | f8aed3d71a92da8c4a521f4d42b113fbecc15218 (diff) | |
Ensure tests pass on the beta compiler
Also add a travis matrix entry for emulating the beta tests
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index e2b371c611d..28161e89f35 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -191,6 +191,10 @@ fn assert_output(source: &Path, expected_filename: &Path) { // rustfmt. #[test] fn idempotence_tests() { + match option_env!("CFG_RELEASE_CHANNEL") { + None | Some("nightly") => {} + _ => return, // these tests require nightly + } // Get all files in the tests/target directory. let files = get_test_files(Path::new("tests/target"), true); let (_reports, count, fails) = check_files(files, None); |
