[U-Boot] [PATCH 3/3] test/fs: Check writes using "." (same dir) relative path

Stephen Warren swarren at wwwdotorg.org
Mon Sep 12 20:44:08 CEST 2016


On 09/11/2016 02:46 PM, Stefan Brüns wrote:
> <path>/<fname> and <path>/./<fname> should reference the same file.

> diff --git a/test/fs/fs-test.sh b/test/fs/fs-test.sh

> +# Read 1MB from small file
> +${PREFIX}load host${SUFFIX} $addr ${FPATH}$FILE_SMALL

I think the same issue with $FPATH ending/not-ending in / applies here 
too, and for all commands in this patch.

> @@ -482,6 +499,16 @@ function check_results() {

> +	# Check directory traversal
> +	grep -A6 "Test Case 13a " "$1" | \
> +		egrep -q '1048576 bytes written|update journal'

Why is "update journal" considered successful? Surely the "n bytes 
written" message is always printed irrespective of whether anything 
journal-related happened?


More information about the U-Boot mailing list