mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-27 04:19:33 +01:00
17 lines
411 B
Rust
17 lines
411 B
Rust
|
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);
|
||
|
}
|