dtoc: Correct the intarray-widening test case
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.
Reported-by Walter Lozano <[email protected]>
Signed-off-by Simon Glass <[email protected]>
---
tools/dtoc/test_fdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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)
Signature · 1 line
2.32.0.554.ge1b32706d8-goog
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.
Reported-by Walter Lozano <[email protected]>Signed-off-by Simon Glass <[email protected]>---
tools/dtoc/test_fdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/dtoc/test_fdt.py +0
-0
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!
Reviewed-by Walter Lozano <[email protected]>
Regards,
Walter
Hi Simon,
Quoted 10 lines · Simon Glass
This case was intended to check that widening an int array with an int does nothing. Fix it.
Reported-by Walter Lozano <[email protected]>Signed-off-by Simon Glass <[email protected]>---
tools/dtoc/test_fdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to u-boot-dm, thanks!