mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-22 12:38:07 +00:00
Switch ui tests to trybuild
This commit is contained in:
@@ -1,21 +1,6 @@
|
||||
#![cfg(feature = "compiletest")]
|
||||
|
||||
use compiletest_rs as compiletest;
|
||||
|
||||
#[rustc::attr(not(nightly), ignore)]
|
||||
#[test]
|
||||
fn ui() {
|
||||
compiletest::run_tests(&compiletest::Config {
|
||||
mode: compiletest::common::Mode::Ui,
|
||||
src_base: std::path::PathBuf::from("tests/ui"),
|
||||
target_rustcflags: Some(String::from(
|
||||
"\
|
||||
--edition=2018 \
|
||||
-L deps/target/debug/deps \
|
||||
-Z unstable-options \
|
||||
--extern serde_derive \
|
||||
",
|
||||
)),
|
||||
build_base: std::path::PathBuf::from("../target/ui"),
|
||||
..Default::default()
|
||||
});
|
||||
let t = trybuild::TestCases::new();
|
||||
t.compile_fail("tests/ui/**/*.rs");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user