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

Commit 58c7af1

Browse files
committed
Correct compiletest build issues
1 parent 904d0aa commit 58c7af1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sm/tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ fn run_mode(mode: &str) {
1515

1616
#[test]
1717
fn compile_test() {
18-
run_mode("compile-fail");
1918
run_mode("run-pass");
19+
run_mode("compile-fail");
2020
}

test_suite/tests/compile-fail/macros/sm/private-machine-state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ fn main() {
1313
use Lock::*;
1414

1515
let _sm = Machine(Locked);
16-
//~^ ERROR expected function, found struct `Machine`
16+
//~^ ERROR expected function, tuple struct or tuple variant, found struct `Machine`
1717
}

test_suite/tests/compiletest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn run_mode(mode: &'static str) {
66
let mut config = compiletest::Config::default();
77

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

1919
#[test]
2020
fn compile_fail() {
21-
run_mode("compile-fail");
2221
run_mode("run-pass");
22+
run_mode("compile-fail");
2323
}

0 commit comments

Comments
 (0)