diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2019-11-06 19:05:37 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2019-11-06 19:05:37 -0500 |
| commit | 31b392fe3a6961596a0bd4e1bb24c0da2a9b7b42 (patch) | |
| tree | e0e2967f7805c2626e9ed794a898861821524936 /tests/single.rs | |
| parent | 72e84cb297ef06d9496d18402bc8ea2d88cd1665 (diff) | |
CI: replace compiletest-rs with trybuild
We use compiletest to run compile-fail tests but compiletest depends on compiler
internals so it breaks every now and then and requires nightly. With trybuild we
can also run compile-fail tests but it works on stable and it already has
reached version 1.0
Diffstat (limited to 'tests/single.rs')
| -rw-r--r-- | tests/single.rs | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/tests/single.rs b/tests/single.rs index 01b8031..b5d480c 100644 --- a/tests/single.rs +++ b/tests/single.rs @@ -1,19 +1,7 @@ -use std::path::PathBuf; - -use compiletest_rs::{common::Mode, Config}; +use trybuild::TestCases; #[test] fn ui() { - let mut config = Config::default(); - - config.mode = Mode::Ui; - config.src_base = PathBuf::from("ui/single"); - config.target_rustcflags = Some( - "--edition=2018 -L target/debug/deps -Z unstable-options --extern rtfm --extern lm3s6965" - .to_owned(), - ); - config.link_deps(); - config.clean_rmeta(); - - compiletest_rs::run_tests(&config); + let t = TestCases::new(); + t.compile_fail("ui/single/*.rs"); } |
