From 4c813d3c21f4b958be139b676f94a7362e6e3e1d Mon Sep 17 00:00:00 2001 From: Shawn Willden Date: Tue, 26 Nov 2019 22:16:54 -0700 Subject: [PATCH] Remove service death test. Moving to KM4.1 VTS. Test: VtsHalKeymasterV4_0TargetTest Change-Id: I8f2b7ab3305833fe8639fdefb9cc263f99684920 Merged-In: I8f2b7ab3305833fe8639fdefb9cc263f99684920 --- .../functional/keymaster_hidl_hal_test.cpp | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp b/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp index 7aaf7f8b52..fb450d1bb4 100644 --- a/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp +++ b/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp @@ -4557,45 +4557,6 @@ TEST_P(ClearOperationsTest, TooManyOperations) { AbortIfNeeded(); } -/* - * ClearSlotsTest.ServiceDeath - * - * Verifies that the service is restarted after death and the ongoing - * operations are cleared. - */ -TEST_P(ClearOperationsTest, ServiceDeath) { - ASSERT_EQ(ErrorCode::OK, GenerateKey(AuthorizationSetBuilder() - .Authorization(TAG_NO_AUTH_REQUIRED) - .RsaEncryptionKey(2048, 65537) - .Padding(PaddingMode::NONE))); - - auto params = AuthorizationSetBuilder().Padding(PaddingMode::NONE); - int max_operations = SecLevel() == SecurityLevel::STRONGBOX ? 4 : 16; - OperationHandle op_handles[max_operations]; - AuthorizationSet out_params; - for(int i=0; i