summaryrefslogtreecommitdiff
path: root/cc/object_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/object_test.go')
-rw-r--r--cc/object_test.go51
1 files changed, 0 insertions, 51 deletions
diff --git a/cc/object_test.go b/cc/object_test.go
index 00f83d464..259a892ab 100644
--- a/cc/object_test.go
+++ b/cc/object_test.go
@@ -15,7 +15,6 @@
package cc
import (
- "fmt"
"testing"
"android/soong/android"
@@ -108,53 +107,3 @@ cc_object {
expectedOutputFiles := []string{"outputbase/execroot/__main__/bazel_out.o"}
android.AssertDeepEquals(t, "output files", expectedOutputFiles, outputFiles.Strings())
}
-
-func TestCcObjectOutputFile(t *testing.T) {
- testcases := []struct {
- name string
- bp string
- }{
- {
- name: "normal",
- bp: `
- srcs: ["bar.c"],
- `,
- },
- {
- name: "keep symbols",
- bp: `
- srcs: ["bar.c"],
- prefix_symbols: "foo_",
- `,
- },
- {
- name: "partial linking",
- bp: `
- srcs: ["bar.c", "baz.c"],
- `,
- },
- {
- name: "partial linking and prefix symbols",
- bp: `
- srcs: ["bar.c", "baz.c"],
- prefix_symbols: "foo_",
- `,
- },
- }
-
- for _, testcase := range testcases {
- bp := fmt.Sprintf(`
- cc_object {
- name: "foo",
- %s
- }
- `, testcase.bp)
- t.Run(testcase.name, func(t *testing.T) {
- ctx := PrepareForIntegrationTestWithCc.RunTestWithBp(t, bp)
- android.AssertPathRelativeToTopEquals(t, "expected output file foo.o",
- "out/soong/.intermediates/foo/android_arm64_armv8-a/foo.o",
- ctx.ModuleForTests("foo", "android_arm64_armv8-a").Output("foo.o").Output)
- })
- }
-
-}