From adcd676491ccbefc17da551cf911b2f4d7d330f6 Mon Sep 17 00:00:00 2001 From: Stefan Mavrodiev Date: Mon, 11 Nov 2019 10:04:44 +0200 Subject: Add test-case for trailing zero If there is trailing zero, fdtget adds extra chacarter to the property value. Thus comparing the expected with the actual value, an error is emitted. Signed-off-by: Stefan Mavrodiev Message-Id: <20191111080444.9819-3-stefan@olimex.com> Signed-off-by: David Gibson --- tests/run_tests.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/run_tests.sh b/tests/run_tests.sh index a0a5245..06bbccb 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -944,6 +944,10 @@ fdtoverlay_tests() { # test that baz correctly inserted the property run_fdtoverlay_test baz "/foonode/barnode/baznode" "baz-property" "-ts" ${stacked_basedtb} ${stacked_targetdtb} ${stacked_bardtb} ${stacked_bazdtb} + # test that bar and baz are correctly appended to __symbols__ + run_fdtoverlay_test "/foonode/barnode" "/__symbols__" "bar" "-ts" ${stacked_basedtb} ${stacked_targetdtb} ${stacked_bardtb} + run_fdtoverlay_test "/foonode/barnode/baznode" "/__symbols__" "baz" "-ts" ${stacked_basedtb} ${stacked_targetdtb} ${stacked_bardtb} ${stacked_bazdtb} + overlay_long_path="$SRCDIR/overlay_overlay_long_path.dts" overlay_long_pathdtb=overlay_overlay_long_path.fdoverlay.test.dtb target_long_pathdtb=overlay_overlay_long_path_target.fdoverlay.test.dtb -- cgit v1.1