diff --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py index ab2cfe82254803..ed824ad09d86ed 100644 --- a/compiler-rt/test/lit.common.cfg.py +++ b/compiler-rt/test/lit.common.cfg.py @@ -367,7 +367,7 @@ def get_macos_aligned_version(macos_vers): config.available_features.add('android-26') if android_api_level >= 28: config.available_features.add('android-28') - if android_api_level >= 31 or android_api_codename == 'S': + if android_api_level > 30 or (android_api_level == 30 and android_api_codename == 'S'): config.available_features.add('android-thread-properties-api') # Prepare the device.