rust: Fix module name in bindgen_test am: e0510d7a69

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1438952

Change-Id: If2a34b8c9e32c20024944ee4af24636f1bd71b3d
This commit is contained in:
Thiébaud Weksteen 2020-09-25 14:17:16 +00:00 committed by Automerger Merge Worker
commit dba9762aa0

View file

@ -115,8 +115,8 @@ func TestRustBindgenStdVersions(t *testing.T) {
}
`)
libbindgen_cstd := ctx.ModuleForTests("libbindgen_cstd", "android_arm64_armv8-a").Output("bindings.rs")
libbindgen_cppstd := ctx.ModuleForTests("libbindgen_cppstd", "android_arm64_armv8-a").Output("bindings.rs")
libbindgen_cstd := ctx.ModuleForTests("libbindgen_cstd", "android_arm64_armv8-a_source").Output("bindings.rs")
libbindgen_cppstd := ctx.ModuleForTests("libbindgen_cppstd", "android_arm64_armv8-a_source").Output("bindings.rs")
if !strings.Contains(libbindgen_cstd.Args["cflags"], "-std=foo") {
t.Errorf("c_std value not passed in to rust_bindgen as a clang flag")