summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurii Shutkin <shutkin@google.com>2023-06-06 12:08:35 +0200
committerYurii Shutkin <shutkin@google.com>2024-03-28 11:39:46 +0000
commitde2ea82bc010c57a4f842a0d38f4d4e053901589 (patch)
tree6b21a42d5202e546978e94288d611b5e7ed8de3b
parent285aa2df659dcec557bc2432e3376d11f26f3189 (diff)
downloadlib-de2ea82bc010c57a4f842a0d38f4d4e053901589.tar.gz
reduce test length if SIMULATION flag is on
Change-Id: I5531d34f0659ff4ec9134d0cf06cedf1be06dbb0 Test: trusty.hwaes.test Bug: 279866867
-rw-r--r--app/hwaes-unittest/hwaes-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/hwaes-unittest/hwaes-test.c b/app/hwaes-unittest/hwaes-test.c
index 0c16203..bfa5616 100644
--- a/app/hwaes-unittest/hwaes-test.c
+++ b/app/hwaes-unittest/hwaes-test.c
@@ -28,7 +28,13 @@
#include <uapi/err.h>
#define AUX_PAGE_SIZE() getauxval(AT_PAGESZ)
+
+#if SIMULATION
+#define MAX_TRY_TIMES 3
+#else
#define MAX_TRY_TIMES 1000
+#endif
+
#define UNUSED_HWAES_ERROR_CODE HWAES_NO_ERROR
#define HWAES_GCM_IV_SIZE 12