diff options
author | Garret Kelly <gdk@google.com> | 2019-05-01 15:12:11 -0400 |
---|---|---|
committer | Garret Kelly <gdk@google.com> | 2019-05-01 15:18:38 -0400 |
commit | d47288dde54232df0fac57c70c12f75fc1de0c8b (patch) | |
tree | 9be8326d438727ca6d5709be2eeec1f8da9fa1ef | |
parent | d64f48a5041578c1b18d12024ae3b2a8862b453d (diff) | |
download | android_hardware_interfaces-d47288dde54232df0fac57c70c12f75fc1de0c8b.tar.gz android_hardware_interfaces-d47288dde54232df0fac57c70c12f75fc1de0c8b.tar.bz2 android_hardware_interfaces-d47288dde54232df0fac57c70c12f75fc1de0c8b.zip |
Make test expectation match comment
The BOOT_PATCHLEVEL value is allowed to have 00 in the days position
according to the keymaster specification. This test's comment already
suggests that it's allowed, so update the expectation to match.
Test: VtsHalKeymasterV4_0TargetTest
Bug: 130843899
Change-Id: Ib43da43b2e0398b48fb59710bf4066f2641de2eb
-rw-r--r-- | keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp | 2 |
1 files changed, 1 insertions, 1 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 cf12e2a4b..3d37e9fb8 100644 --- a/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp +++ b/keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp @@ -371,7 +371,7 @@ bool verify_attestation_record(const string& challenge, const string& app_id, strptime(date.c_str(), "%Y-%m-%d", &time); // Day of the month (0-31) - EXPECT_GT(time.tm_mday, 0); + EXPECT_GE(time.tm_mday, 0); EXPECT_LT(time.tm_mday, 32); // Months since Jan (0-11) EXPECT_GE(time.tm_mon, 0); |