Browse Source

libfdt: tests: Update test case for overlay_bad_fixup

Changed the target DTS from overlay_base_no_symbols.test.dtb to overlay_base_manual_symbols.test.dtb.
This ensures that the test case doesn't exit prematurely due to the absence of label-linked phandle in the symbols node.
The update guarantees that the test case appropriately checks the validity of the fixup string linked to the label, as intended.

Signed-off-by: Zheng Guangyuan <1628513611@qq.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
Zheng Guangyuan 7 months ago committed by David Gibson
parent
commit
4dd831affd
  1. 2
      tests/run_tests.sh

2
tests/run_tests.sh

@ -269,7 +269,7 @@ libfdt_overlay_tests () {
for test in $BAD_FIXUP_TREES; do for test in $BAD_FIXUP_TREES; do
tree="overlay_bad_fixup_$test" tree="overlay_bad_fixup_$test"
run_dtc_test -I dts -O dtb -o $tree.test.dtb "$SRCDIR/$tree.dts" run_dtc_test -I dts -O dtb -o $tree.test.dtb "$SRCDIR/$tree.dts"
run_test overlay_bad_fixup overlay_base_no_symbols.test.dtb $tree.test.dtb run_test overlay_bad_fixup overlay_base_manual_symbols.test.dtb $tree.test.dtb
done done
run_sh_test "$SRCDIR/dtc-fatal.sh" -I dts -O dtb -o /dev/null "$SRCDIR/fixup-ref-to-path.dts" run_sh_test "$SRCDIR/dtc-fatal.sh" -I dts -O dtb -o /dev/null "$SRCDIR/fixup-ref-to-path.dts"
} }

Loading…
Cancel
Save