Add more tests for bad configuration file

This commit is contained in:
mcarton 2016-10-02 14:43:09 +02:00
parent f6f4af6adc
commit 019e310861
No known key found for this signature in database
GPG Key ID: 5E427C794CBA45E8
3 changed files with 14 additions and 0 deletions

View 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() {}

View File

@ -0,0 +1,2 @@
fn this_is_obviously(not: a, toml: file) {
}

View 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() {}