Browse Source

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 <stefan@olimex.com>
Message-Id: <20191111080444.9819-3-stefan@olimex.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
Stefan Mavrodiev 5 years ago committed by David Gibson
parent
commit
adcd676491
  1. 4
      tests/run_tests.sh

4
tests/run_tests.sh

@ -944,6 +944,10 @@ fdtoverlay_tests() { @@ -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

Loading…
Cancel
Save