diff options
author | 2024-05-22 13:41:35 -0700 | |
---|---|---|
committer | 2024-05-22 17:01:59 -0700 | |
commit | aeecb75be2cdd1eca0bba2abf9b85c8a02e6dbd9 (patch) | |
tree | c5c583abab2108431569b1449505279cf81d55e0 | |
parent | c15b0234e982f7d76d72180781799c73057f74ea (diff) |
Add test for parse error
This used to error out prior to the other cl in this topic.
Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I6d95eb00c75836a5a0c60e07bfd4b306388591ed
-rw-r--r-- | android/selects_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/android/selects_test.go b/android/selects_test.go index 8089fbc5c..6f980ce4c 100644 --- a/android/selects_test.go +++ b/android/selects_test.go @@ -761,6 +761,23 @@ func TestSelects(t *testing.T) { }, }, }, + { + name: "Property appending with variable", + bp: ` + my_variable = ["b.cpp"] + my_module_type { + name: "foo", + my_string_list: ["a.cpp"] + my_variable + select(soong_config_variable("my_namespace", "my_variable"), { + "a": ["a.cpp"], + "b": ["b.cpp"], + default: ["c.cpp"], + }), + } + `, + provider: selectsTestProvider{ + my_string_list: &[]string{"a.cpp", "b.cpp", "c.cpp"}, + }, + }, } for _, tc := range testCases { |