From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 4 Dec 2017 13:35:49 -0500 Subject: [U-Boot] [U-Boot, 3/5] test: compression: Put test variables in a struct In-Reply-To: <20171125185733.40599-4-sjg@chromium.org> References: <20171125185733.40599-4-sjg@chromium.org> Message-ID: <20171204183549.GM3587@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Nov 25, 2017 at 11:57:31AM -0700, Simon Glass wrote: > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: