]> git.baikalelectronics.ru Git - uboot.git/commit
test: compression: Put test variables in a struct
authorSimon Glass <sjg@chromium.org>
Sat, 25 Nov 2017 18:57:31 +0000 (11:57 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 2 Dec 2017 23:32:58 +0000 (18:32 -0500)
commitb482183621f83d9d03046f3085efab2a5fe5123b
tree17ce79a8da9473325ab7dc990a1d6d4f274e18ad
parent54dcc34a7a0a43dcf8a83910b5845d110363ff23
test: compression: Put test variables in a struct

At present the test setup is somewhat mixed with the test itself. But if
the test setup fails (which it should not) then the test is actually
invalid. Put all the test buffers and sizes in a struct and separate out
the core code into a function.

This will make it easier to move the code to use the unit test framework.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/compression.c