Add more tests for bad configuration file
This commit is contained in:
parent
f6f4af6adc
commit
019e310861
6
tests/compile-fail/conf_bad_toml.rs
Normal file
6
tests/compile-fail/conf_bad_toml.rs
Normal file
@ -0,0 +1,6 @@
|
||||
// error-pattern: error reading Clippy's configuration file
|
||||
|
||||
#![feature(plugin)]
|
||||
#![plugin(clippy(conf_file="./tests/compile-fail/conf_bad_toml.toml"))]
|
||||
|
||||
fn main() {}
|
2
tests/compile-fail/conf_bad_toml.toml
Normal file
2
tests/compile-fail/conf_bad_toml.toml
Normal file
@ -0,0 +1,2 @@
|
||||
fn this_is_obviously(not: a, toml: file) {
|
||||
}
|
6
tests/compile-fail/conf_path_non_string.rs
Normal file
6
tests/compile-fail/conf_path_non_string.rs
Normal file
@ -0,0 +1,6 @@
|
||||
#![feature(attr_literals)]
|
||||
#![feature(plugin)]
|
||||
#![plugin(clippy(conf_file=42))]
|
||||
//~^ ERROR `conf_file` value must be a string
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user