diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2017-04-09 22:42:17 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2017-04-09 22:42:17 -0500 |
| commit | 595404c5ffc37ce95ffb2b6999ab85e6818bfa50 (patch) | |
| tree | 43688c0818f2af6fdb37ce2e3f29dd7f0ccb898b /tests/cfail.rs | |
| parent | 6ac2625a75fc73b5cb846cd3d60422976f8946fc (diff) | |
compile time verified ceilings
Diffstat (limited to 'tests/cfail.rs')
| -rw-r--r-- | tests/cfail.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/cfail.rs b/tests/cfail.rs new file mode 100644 index 0000000..44c982c --- /dev/null +++ b/tests/cfail.rs @@ -0,0 +1,16 @@ +extern crate compiletest_rs as compiletest; + +use std::path::PathBuf; + +use compiletest::common::Mode; + +#[test] +fn cfail() { + let mut config = compiletest::default_config(); + config.mode = Mode::CompileFail; + config.src_base = PathBuf::from(format!("tests/cfail")); + config.target_rustcflags = + Some("-L target/debug -L target/debug/deps ".to_string()); + + compiletest::run_tests(&config); +} |
