From: Tom Rini Date: Thu, 24 May 2018 08:41:20 -0400 Subject: [U-Boot] [U-Boot, v2, 2/2] test: fs: fs-test: Modified test 1 to do a ls to a nonexistent dir In-Reply-To: <1525872518-3818-2-git-send-email-eugen.hristev@microchip.com> References: <1525872518-3818-2-git-send-email-eugen.hristev@microchip.com> Message-ID: <20180524124120.GG21194@bill-the-cat.ec.rr.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 09, 2018 at 04:28:38PM +0300, Eugen Hristev wrote: > Added a simple ls to a nonexistent directory for test 1. > In case the driver is broken for a nonexistent directory, U-boot > might crash. > > Here is an example failed output: > > => # Test Case 1 - ls > => ext4ls host 0:0 > 4096 . > 4096 .. > 16384 lost+found > 4096 SUBDIR > 2621440000 2.5GB.file > 1048576 1MB.file > => # In addition, test with a nonexistent directory to see if we crash. > => ext4ls host 0:0 invalid_d > ** Can not find directory. ** > ./test/fs/fs-test.sh: line 161: 25786 Segmentation fault (core dumped) $UBOOT < > Subsequent tests will fail if U-boot crashes. > > Signed-off-by: Eugen Hristev > Reviewed-by: Tom Rini 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: