Commit b6594a1
bpf/tests: Enhance output on error and fix typos
If a testcase returns a wrong (unexpected) value, print the expected and
returned value in hex notation in addition to the decimal notation.
This is very useful in tests which bit-shift hex values left or right and
helped me a lot while developing the JIT compiler for the hppa architecture.
Additionally fix two typos: dowrd -> dword, tall calls -> tail calls.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/ZN6ZAAVoWZpsD1Jf@p1001 parent 6c77997 commit b6594a1
1 file changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
600 | | - | |
| 599 | + | |
| 600 | + | |
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
| |||
14567 | 14567 | | |
14568 | 14568 | | |
14569 | 14569 | | |
14570 | | - | |
14571 | | - | |
| 14570 | + | |
| 14571 | + | |
| 14572 | + | |
| 14573 | + | |
14572 | 14574 | | |
14573 | 14575 | | |
14574 | 14576 | | |
| |||
15045 | 15047 | | |
15046 | 15048 | | |
15047 | 15049 | | |
15048 | | - | |
| 15050 | + | |
15049 | 15051 | | |
15050 | 15052 | | |
15051 | 15053 | | |
| |||
0 commit comments