diff options
Diffstat (limited to 'rust/rust_test.go')
-rw-r--r-- | rust/rust_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/rust_test.go b/rust/rust_test.go index abc9af9b1..a32c6a7f8 100644 --- a/rust/rust_test.go +++ b/rust/rust_test.go @@ -230,6 +230,7 @@ func TestDepsTracking(t *testing.T) { } `) module := ctx.ModuleForTests("fizz-buzz", "linux_glibc_x86_64").Module().(*Module) + rustc := ctx.ModuleForTests("fizz-buzz", "linux_glibc_x86_64").Rule("rustc") // Since dependencies are added to AndroidMk* properties, we can check these to see if they've been picked up. if !android.InList("libdylib", module.Properties.AndroidMkDylibs) { @@ -251,6 +252,11 @@ func TestDepsTracking(t *testing.T) { if !android.InList("libstatic", module.Properties.AndroidMkStaticLibs) { t.Errorf("Static library dependency not detected (dependency missing from AndroidMkStaticLibs)") } + + if !strings.Contains(rustc.Args["rustcFlags"], "-lstatic=static") { + t.Errorf("-lstatic flag not being passed to rustc for static library") + } + } func TestSourceProviderDeps(t *testing.T) { |