summaryrefslogtreecommitdiff
path: root/rust/bindgen_test.go
diff options
context:
space:
mode:
author ThiƩbaud Weksteen <tweek@google.com> 2020-09-25 13:14:01 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-09-25 13:14:01 +0000
commit4820c2c8d26d96468f339bdb3bf7753ed70a3dc3 (patch)
tree261b4496b893b611e346b108b687370876f49a25 /rust/bindgen_test.go
parentce2cffd5836f605337babc17858648c0887acf8d (diff)
parent295c72bebcbe2c7463841435fcd5b230ec9caf60 (diff)
Merge "Avoid Rust source provider rule duplication"
Diffstat (limited to 'rust/bindgen_test.go')
-rw-r--r--rust/bindgen_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/bindgen_test.go b/rust/bindgen_test.go
index 359f28b83..65ac3076a 100644
--- a/rust/bindgen_test.go
+++ b/rust/bindgen_test.go
@@ -41,7 +41,7 @@ func TestRustBindgen(t *testing.T) {
export_include_dirs: ["static_include"],
}
`)
- libbindgen := ctx.ModuleForTests("libbindgen", "android_arm64_armv8-a").Output("bindings.rs")
+ libbindgen := ctx.ModuleForTests("libbindgen", "android_arm64_armv8-a_source").Output("bindings.rs")
// Ensure that the flags are present and escaped
if !strings.Contains(libbindgen.Args["flags"], "'--bindgen-flag.*'") {
t.Errorf("missing bindgen flags in rust_bindgen rule: flags %#v", libbindgen.Args["flags"])
@@ -73,7 +73,7 @@ func TestRustBindgenCustomBindgen(t *testing.T) {
}
`)
- libbindgen := ctx.ModuleForTests("libbindgen", "android_arm64_armv8-a").Output("bindings.rs")
+ libbindgen := ctx.ModuleForTests("libbindgen", "android_arm64_armv8-a_source").Output("bindings.rs")
// The rule description should contain the custom binary name rather than bindgen, so checking the description
// should be sufficient.