aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail.rs
diff options
context:
space:
mode:
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);
+}