Fix broken darwin build.
Offending change - I7b64de4b06e9bba3fba3712b25dd9f9d112e1625
Test: sh_binary_test.go
Bug: 156980228
Fixes: 164465992
Change-Id: Idebfdf1ed7d8e10ba867c8eaac01410d754c7131
diff --git a/sh/sh_binary_test.go b/sh/sh_binary_test.go
index c987123..3f2f16f 100644
--- a/sh/sh_binary_test.go
+++ b/sh/sh_binary_test.go
@@ -211,7 +211,8 @@
}
`)
- variant := ctx.ModuleForTests("foo", "linux_glibc_x86_64")
+ buildOS := android.BuildOs.String()
+ variant := ctx.ModuleForTests("foo", buildOS+"_x86_64")
relocated := variant.Output("relocated/lib64/libbar.so")
expectedInput := filepath.Join(buildDir, ".intermediates/libbar/android_arm64_armv8-a_shared/libbar.so")