Lee Kai Xuan / mbed-os

Fork of mbed-os by erkin yucel

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers test_data.py Source File

test_data.py

00001 # Similar to test1, but this time B2 attempt to define base1_1. Since base1_1
00002 # is already defined in B1 and F derives from both B1 and B2, this results
00003 # in an error. However, when building for B2 instead of F, defining base1_1
00004 # should be OK.
00005 
00006 expected_results = {
00007     "f": {
00008         "desc": "attempt to redefine parameter in target inheritance tree",
00009         "exception_msg": "Parameter name 'base1_1' defined in both 'target:b2' and 'target:b1'"
00010     },
00011     "b2": {
00012         "desc": "it should be OK to define parameters with the same name in non-related targets",
00013         "target.base2_1": "v_base2_1_b2",
00014         "target.base2_2": "v_base2_2_b2",
00015         "target.base1_1": "v_base1_1_b2"
00016     }
00017 }
00018