From d47288dde54232df0fac57c70c12f75fc1de0c8b Mon Sep 17 00:00:00 2001 From: Garret Kelly Date: Wed, 1 May 2019 15:12:11 -0400 Subject: 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 --- keymaster/4.0/vts/functional/keymaster_hidl_hal_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3