From 595404c5ffc37ce95ffb2b6999ab85e6818bfa50 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sun, 9 Apr 2017 22:42:17 -0500 Subject: compile time verified ceilings --- tests/cfail.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/cfail.rs (limited to 'tests/cfail.rs') 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); +} -- cgit v1.2.3