diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2016-01-20 14:59:01 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-20 17:09:18 -0800 |
commit | cc77a719a5cfd419d057277fd0fdfca568bcfdd2 (patch) | |
tree | 3119fe81cd39c472859ca4d223d59632a0e69f2b /scripts | |
parent | 7047d813718c8e40929b7267a8d20cbf212f8565 (diff) | |
download | linux-cc77a719a5cfd419d057277fd0fdfca568bcfdd2.tar.gz linux-cc77a719a5cfd419d057277fd0fdfca568bcfdd2.tar.bz2 linux-cc77a719a5cfd419d057277fd0fdfca568bcfdd2.zip |
test_hexdump: check all bytes in real buffer
After processing by hex_dump_to_buffer() check all the parts to be expected.
Part 1. The actual expected hex dump with or without ASCII part.
Part 2. Check if the buffer is dirty beyond needed.
Part 3. Return code should be as expected.
This is done by using comparison of the return code and memcmp() against
the test buffer. We fill the buffer by FILL_CHAR ('#') characters, so, we
expect to have a tail of the buffer will be left untouched. The
terminating NUL is also checked by memcmp().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions