diff options
author | David 'Digit' Turner <digit@google.com> | 2014-05-12 14:30:30 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-12 14:30:30 +0000 |
commit | 352a1eea121a0d2407b48d5ca52adc1a8bebaebf (patch) | |
tree | f76927331a8ea211f37334f6337cc8086c28d501 /tests | |
parent | 0f0cd2a5013091111ff8489cb3bc68e84eacbf17 (diff) | |
parent | baa64155d31c9debf13ae1c6c96e3a6aa07b4238 (diff) | |
download | ndk-352a1eea121a0d2407b48d5ca52adc1a8bebaebf.tar.gz |
Merge "Revert "Revert "Revert "cpu-features: Support 32-bit ARM binaries running on an ARM64 kernel.""""
Diffstat (limited to 'tests')
-rw-r--r-- | tests/device/test-cpufeatures/jni/test_cpufeatures.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/tests/device/test-cpufeatures/jni/test_cpufeatures.c b/tests/device/test-cpufeatures/jni/test_cpufeatures.c index 861032a69..c5fe0c738 100644 --- a/tests/device/test-cpufeatures/jni/test_cpufeatures.c +++ b/tests/device/test-cpufeatures/jni/test_cpufeatures.c @@ -13,10 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#define __STDC_FORMAT_MACROS 1 - #include <cpu-features.h> -#include <inttypes.h> #include <stdio.h> int main(void) @@ -90,21 +87,7 @@ int main(void) #undef CHECK } - int result = 0; - - // Check that the CPU features mask is empty for anything that isn't - // 32-bit ARM or 32-bit x86. - if (family != ANDROID_CPU_FAMILY_ARM && - family != ANDROID_CPU_FAMILY_X86) { - uint64_t features = android_getCpuFeatures(); - if (features != 0) { - printf("ERROR: Unexpected CPU features mask: %016" PRIX64 "\n", - features); - result = 1; - } - } - int count = android_getCpuCount(); printf( "Number of CPU cores: %d\n", count); - return result; + return 0; } |