Skip to contentSkip to conversation

dtoc: Correct the intarray-widening test case

PATCH In review Simon Glass 2 participants 3 messages Aug 2, 2021 – Aug 9, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dtoc: Correct the intarray-widening test case

This case was intended to check that widening an int array with an int does nothing. Fix it.

---

 tools/dtoc/test_fdt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/dtoc/test_fdt.py +1 -1
index 1119e6b7847..d104f3c7745 100755
@@ -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)
Signature · 1 line
2.32.0.554.ge1b32706d8-goog
Reviewed-by on v1 1/1
#1 lore raw

Hi Simon,

Quoted 15 lines · Simon Glass

This case was intended to check that widening an int array with an int does nothing. Fix it.

---

  tools/dtoc/test_fdt.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/dtoc/test_fdt.py +0 -0
index 1119e6b7847..d104f3c7745 100755

tools/dtoc/test_fdt.py class TestProp(unittest.TestCase): · line 431

Quoted 8 lines
tools/dtoc/test_fdt.py +1 -1
@@ -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)

Thanks for the fix!

Regards,

Walter