mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user