aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-07-18 15:14:39 -0500
committerJorge Aparicio <jorge@japaric.io>2017-07-18 15:14:39 -0500
commit1f1cf84ab41ec26ac58c31260667f97507def0d0 (patch)
tree66c402bd045e1741d3b613dbab2b526d8e49f7c7 /tests/cfail.rs
parente9788ff9b69a3725f39db4aa31c36946b53bea64 (diff)
add cfail tests
Diffstat (limited to 'tests/cfail.rs')
-rw-r--r--tests/cfail.rs16
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);
+}