]> git.ipfire.org Git - people/ms/u-boot.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)
commit49f22c38f194d5704991d02d9d479d46aa0d8a57
tree17ce79a8da9473325ab7dc990a1d6d4f274e18ad
parente93232e15ec9fb42a6f856b612c7b64792e533c2
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