]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dtoc: Correct the intarray-widening test case
authorSimon Glass <sjg@chromium.org>
Mon, 2 Aug 2021 13:37:54 +0000 (07:37 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 8 Aug 2021 17:27:27 +0000 (11:27 -0600)
This case was intended to check that widening an int array with an int
does nothing. Fix it.

Reported-by: Walter Lozano <walter.lozano@collabora.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Walter Lozano <walter.lozano@collabora.com>
tools/dtoc/test_fdt.py

index 1119e6b784747a171a96a9023dad7a8160ea6efa..d104f3c77450154442dee201784e93242f0632c2 100755 (executable)
@@ -425,7 +425,7 @@ class TestProp(unittest.TestCase):
 
         # Widen an array of ints with an int (should do nothing)
         prop = self.node.props['intarray']
-        prop2 = node2.props['intarray']
+        prop2 = node2.props['intval']
         self.assertEqual(Type.INT, prop.type)
         self.assertEqual(3, len(prop.value))
         prop.Widen(prop2)