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
This commit is contained in:
Garret Kelly
2019-05-01 15:12:11 -04:00
parent d64f48a504
commit d47288dde5

View File

@@ -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);