Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Correct compiletest build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkundert committed Dec 9, 2020
1 parent 904d0aa commit 58c7af1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sm/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ fn run_mode(mode: &str) {

#[test]
fn compile_test() {
run_mode("compile-fail");
run_mode("run-pass");
run_mode("compile-fail");
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ fn main() {
use Lock::*;

let _sm = Machine(Locked);
//~^ ERROR expected function, found struct `Machine`
//~^ ERROR expected function, tuple struct or tuple variant, found struct `Machine`
}
4 changes: 2 additions & 2 deletions test_suite/tests/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fn run_mode(mode: &'static str) {
let mut config = compiletest::Config::default();

config.mode = mode.parse().expect("invalid mode");
config.target_rustcflags = Some("-L deps/target/debug/deps".to_owned());
config.target_rustcflags = Some("-L ../target/debug -L deps/target/debug/deps".to_owned());
if let Ok(name) = env::var("TESTNAME") {
config.filter = Some(name);
}
Expand All @@ -18,6 +18,6 @@ fn run_mode(mode: &'static str) {

#[test]
fn compile_fail() {
run_mode("compile-fail");
run_mode("run-pass");
run_mode("compile-fail");
}

0 comments on commit 58c7af1

Please sign in to comment.