rtic/tests/cfail.rs
Jorge Aparicio efca108103 cargo fmt
2018-04-16 21:32:52 +02:00

17 lines
439 B
Rust

extern crate compiletest_rs as compiletest;
use std::path::PathBuf;
use compiletest::common::Mode;
use compiletest::Config;
#[test]
fn cfail() {
let mut config = Config::default();
config.mode = Mode::CompileFail;
config.src_base = PathBuf::from(format!("tests/cfail"));
config.target_rustcflags =
Some("-C panic=abort -L target/debug -L target/debug/deps ".to_string());
compiletest::run_tests(&config);
}