Merge "Enhance APF read/write tests error message" into main
This commit is contained in:
commit
88a83d413e
1 changed files with 9 additions and 1 deletions
|
|
@ -373,7 +373,15 @@ class ApfIntegrationTest {
|
|||
|
||||
// Compare entire memory region.
|
||||
val readResult = readProgram()
|
||||
assertWithMessage("read/write $i byte prog failed").that(readResult).isEqualTo(program)
|
||||
val errMsg = """
|
||||
read/write $i byte prog failed.
|
||||
In APFv4, the APF memory region MUST NOT be modified or cleared except by APF
|
||||
instructions executed by the interpreter or by Android OS calls to the HAL. If this
|
||||
requirement cannot be met, the firmware cannot declare that it supports APFv4 and
|
||||
it should declare that it only supports APFv3(if counter is partially supported) or
|
||||
APFv2.
|
||||
""".trimIndent()
|
||||
assertWithMessage(errMsg).that(readResult).isEqualTo(program)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue