From c17fcbd3888a16b30d43048beb2c2025fb9d7a96 Mon Sep 17 00:00:00 2001 From: Kiyoung Kim Date: Thu, 4 Jan 2024 10:11:07 +0900 Subject: Remove TestVndkRequiresFrozen test TestVndkRequiresFrozen test was introduced to test frozen flag within VNDK enabled aidl_interface, but this test was running on unexpected environment, because device vndk version and platform vndk version was not set. This makes test fail when build system is updated with VNDK deprecation. As this test is no longer required with VNDK deprecation, it would be better to remove test rather than fix the problem. This change removes TestVndkRequiresFrozen from AIDL tests. Bug: 316829758 Test: m nothing --no-skip-soong-tests passed Change-Id: I79ab29949cdc6e4df4ac3c20e4749f74ea6ce95e --- build/aidl_test.go | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/build/aidl_test.go b/build/aidl_test.go index 5d9cd328..e4948142 100644 --- a/build/aidl_test.go +++ b/build/aidl_test.go @@ -1474,47 +1474,6 @@ func TestDuplicatedVersions(t *testing.T) { })) } -func TestVndkRequiresFrozen(t *testing.T) { - testAidlError(t, `frozen: true or false must be specified when the VNDK is enabled on a versioned interface`, ` - aidl_interface { - name: "myiface", - vendor_available: true, - product_available: true, - srcs: ["IFoo.aidl"], - vndk: { - enabled: true, - }, - } - `) - testAidlError(t, `vndk_use_version: must be specified if interface is unfrozen`, ` - aidl_interface { - name: "myiface", - vendor_available: true, - product_available: true, - srcs: ["IFoo.aidl"], - stability: "vintf", - frozen: false, - vndk: { - enabled: true, - }, - } - `) - testAidl(t, ` - aidl_interface { - name: "myiface", - vendor_available: true, - product_available: true, - srcs: ["IFoo.aidl"], - stability: "vintf", - frozen: false, - vndk_use_version: "1", - vndk: { - enabled: true, - }, - } - `) -} - func TestRecoveryAvailable(t *testing.T) { ctx, _ := testAidl(t, ` aidl_interface { -- cgit v1.2.3