Skip to content

Commit 95c6e68

Browse files
committed
Tweak proc_macro test to correctly test case.
Minor change causes the test to actually test the case instead of always passing regardless of the fix that adds the host dependency directory to the library search path.
1 parent a5d8298 commit 95c6e68

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,10 +2816,10 @@ fn find_dependency_of_proc_macro_dependency_with_target() {
28162816
proc-macro = true
28172817
28182818
[dependencies]
2819-
dep_of_proc_macro_dep = "^0.1"
2819+
bar = "^0.1"
28202820
"#)
28212821
.file("proc_macro_dep/src/lib.rs", r#"
2822-
extern crate dep_of_proc_macro_dep;
2822+
extern crate bar;
28232823
extern crate proc_macro;
28242824
use proc_macro::TokenStream;
28252825
@@ -2828,7 +2828,11 @@ fn find_dependency_of_proc_macro_dependency_with_target() {
28282828
"".parse().unwrap()
28292829
}
28302830
"#);
2831-
Package::new("dep_of_proc_macro_dep", "0.1.0").publish();
2831+
Package::new("foo", "0.1.0").publish();
2832+
Package::new("bar", "0.1.0")
2833+
.dep("foo", "0.1")
2834+
.file("src/lib.rs", "extern crate foo;")
2835+
.publish();
28322836
workspace.build();
28332837
assert_that(workspace.cargo("test").arg("--all").arg("--target").arg(rustc_host()),
28342838
execs().with_status(0));

0 commit comments

Comments
 (0)