summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKyeongkab.Nam <Kyeongkab.Nam@sony.com>2022-11-30 04:33:32 +0900
committerKyeongkab.Nam <Kyeongkab.Nam@sony.com>2022-11-30 04:33:32 +0900
commit7bcbff31c5af60933701281d5e682e62732143d8 (patch)
treea83b731c4d774311488b83d9bb473c14b4ca7cc7 /tests
parent67ce20e01a858c995bf0b3cb8a728b6e55b0b6ff (diff)
downloadlibufdt-7bcbff31c5af60933701281d5e682e62732143d8.tar.gz
Fix a test to check duplicated phandles
All the dtbo will be merged into one fdt to verify if dtb in a test device is the same as expected. However, there are cases the number of phandle will be duplicated Fix a test to get correct phandle_offset. Bug: 259891464 Test: run vts -m VtsFirmwareDtboVerification Change-Id: Ia90a4537a4be0dfbb0316d2b47fb12d619fa7c34
Diffstat (limited to 'tests')
-rw-r--r--tests/libufdt_verify/ufdt_test_overlay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libufdt_verify/ufdt_test_overlay.cpp b/tests/libufdt_verify/ufdt_test_overlay.cpp
index 71e888b..603228d 100644
--- a/tests/libufdt_verify/ufdt_test_overlay.cpp
+++ b/tests/libufdt_verify/ufdt_test_overlay.cpp
@@ -348,7 +348,7 @@ int ufdt_resolve_duplicate_phandles(ufdt** overlay_tree, size_t overlay_count) {
if (ufdt_overlay_do_local_fixups(overlay_tree[i], phandle_offset) < 0) {
return -1;
}
- phandle_offset = ufdt_get_max_phandle(overlay_tree[i]);
+ phandle_offset += ufdt_get_max_phandle(overlay_tree[i]);
}
return 0;