Skip to content

Commit

Permalink
tests: fix system tests on non-nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright authored and pietroalbini committed Mar 11, 2020
1 parent 9f53665 commit a828ffe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ mod test {

#[test]
fn test_valid_license_template_path() {
if !crate::is_nightly_channel!() {
return;
}
let toml = r#"license_template_path = "tests/license-template/lt.txt""#;
let config = Config::from_toml(toml, Path::new("")).unwrap();
assert!(config.license_template.is_some());
Expand Down
1 change: 0 additions & 1 deletion tests/config/issue-3779.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
unstable_features = true
ignore = [
"tests/**/issue-3779/ice.rs"
]
1 change: 1 addition & 0 deletions tests/source/issue-3779/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// rustfmt-unstable: true
// rustfmt-config: issue-3779.toml

#[path = "ice.rs"]
Expand Down
1 change: 1 addition & 0 deletions tests/target/issue-3779/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// rustfmt-unstable: true
// rustfmt-config: issue-3779.toml

#[path = "ice.rs"]
Expand Down

0 comments on commit a828ffe

Please sign in to comment.