diff options
author | Yurii Shutkin <shutkin@google.com> | 2023-06-06 12:08:35 +0200 |
---|---|---|
committer | Yurii Shutkin <shutkin@google.com> | 2024-03-28 11:39:46 +0000 |
commit | de2ea82bc010c57a4f842a0d38f4d4e053901589 (patch) | |
tree | 6b21a42d5202e546978e94288d611b5e7ed8de3b | |
parent | 285aa2df659dcec557bc2432e3376d11f26f3189 (diff) | |
download | lib-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.c | 6 |
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 |