mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
userland x86_64: ASSERT_EQ show actual and expected values
This commit is contained in:
10
README.adoc
10
README.adoc
@@ -11588,10 +11588,16 @@ And then watch the assertion fail:
|
||||
with error message:
|
||||
|
||||
....
|
||||
error 1 at line 8
|
||||
assert_eq_64 failed
|
||||
val1 0x3
|
||||
val2 0x4
|
||||
error: asm_main returned 1 at line 8
|
||||
....
|
||||
|
||||
and notice how we give the actual assembly line number where the failing assert was!
|
||||
and notice how the error message gives both:
|
||||
|
||||
* the actual assembly source line number where the failing assert was
|
||||
* the actual and expected values
|
||||
|
||||
Other setup sanity checks that you might want to look into include:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user