[PATCH v2 2/2] Add test-case for trailing zero

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx>
---
 tests/run_tests.sh                |  4 ++++
 1 files changed, 4 insertions(+)

diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 081f1ee..20ba8bc 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
-- 
2.17.1




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux