2020-06-07 08:38:49 -04:00
|
|
|
// use std::fs;
|
|
|
|
// use std::path::{Path, PathBuf};
|
2020-06-11 06:42:22 -04:00
|
|
|
//
|
2020-06-07 08:38:49 -04:00
|
|
|
// struct TempDir {
|
|
|
|
// dir: PathBuf
|
|
|
|
// }
|
2020-06-11 06:42:22 -04:00
|
|
|
//
|
2020-06-07 08:38:49 -04:00
|
|
|
// impl TempDir {
|
|
|
|
// fn new(dir: &Path) {
|
|
|
|
// fs::create_dir_all(dir);
|
|
|
|
// Self { dir: dir.to_owned() }
|
|
|
|
// }
|
|
|
|
// }
|
2020-06-11 06:42:22 -04:00
|
|
|
//
|
2020-06-07 08:38:49 -04:00
|
|
|
// impl Frop for TempDir {
|
|
|
|
// fn drop(&mut self) {
|
|
|
|
// fs::remove_dir_all(&*self.dir);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn compile_error() {
|
2020-06-11 02:31:55 -04:00
|
|
|
std::env::set_var("SAILFISH_INTEGRATION_TESTS", "1");
|
2020-06-07 08:38:49 -04:00
|
|
|
let t = trybuild::TestCases::new();
|
|
|
|
t.compile_fail("tests/fails/*.rs");
|
|
|
|
}
|