From 8f4debc3f988f7e530d64874343141b49061d65c Mon Sep 17 00:00:00 2001 From: Mike Yu Date: Tue, 6 Jun 2023 11:28:57 +0000 Subject: [PATCH] Add DnsResolverModuleTest annotation This annotation can be used to mark a test case that requires the latest resolv module. Tests that don't run with the latest resolv module (for example CtsNetTestCasesLatestSdk) can exclude the testcases being flaky due to some known issues in old resolv module. Bug: 279846955 Test: TreeHugger Change-Id: Ie19eed1c4aa17645c4eec45493e7999027a01205 --- .../testutils/DnsResolverModuleTest.kt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 staticlibs/testutils/hostdevice/com/android/testutils/DnsResolverModuleTest.kt diff --git a/staticlibs/testutils/hostdevice/com/android/testutils/DnsResolverModuleTest.kt b/staticlibs/testutils/hostdevice/com/android/testutils/DnsResolverModuleTest.kt new file mode 100644 index 0000000000..9e97d51e31 --- /dev/null +++ b/staticlibs/testutils/hostdevice/com/android/testutils/DnsResolverModuleTest.kt @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2023 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.android.testutils + +/** + * Indicates that the test covers functionality that was rolled out in a resolv module update. + */ +annotation class DnsResolverModuleTest