diff options
author | Erik Schmauss <erik.schmauss@intel.com> | 2017-05-09 10:34:11 -0700 |
---|---|---|
committer | Erik Schmauss <erik.schmauss@intel.com> | 2017-05-09 10:34:11 -0700 |
commit | 8cc341b3dd668547b9ed2965939e0202a3ea2138 (patch) | |
tree | 468c78dc25efc22bee132adc4a36a88783cc4272 /tests | |
parent | b9beef2abbb5e452064cad50b6654ad970ea4575 (diff) | |
download | acpica-8cc341b3dd668547b9ed2965939e0202a3ea2138.tar.gz |
ASLTS: reverse the order of definition block declarations to test for a corner case
Reversing the order of defintion block declarations exposed an
issue in the compiler namespace loading. This issue has been fixed
and this change exercises the code involved in the bug fix.
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/aslts/src/runtime/collections/functional/external/MAIN.asl | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/tests/aslts/src/runtime/collections/functional/external/MAIN.asl b/tests/aslts/src/runtime/collections/functional/external/MAIN.asl index 4001431da..87a540e83 100644 --- a/tests/aslts/src/runtime/collections/functional/external/MAIN.asl +++ b/tests/aslts/src/runtime/collections/functional/external/MAIN.asl @@ -25,6 +25,33 @@ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +DefinitionBlock( + "external.aml", // Output filename + "DSDT", // Signature + 0x02, // DSDT Revision + "Intel", // OEMID + "Many", // TABLE ID + 0x00000001 // OEM Revision + ) { + + // All declarations + Include("../../../../runtime/cntl/DECL.asl") + Include("../../../../runtime/collections/functional/external/DECL.asl") + + Method(MAIN) { + + // Initialization + STRT(0) + + // Run verification methods + Include("../../../../runtime/collections/functional/external/RUN.asl") + + // Final actions + Store(FNSH(), Local7) + + return (Local7) + } +} DefinitionBlock( "external.aml", // Output filename @@ -62,32 +89,3 @@ DefinitionBlock( CreateBitField(E003, 0, E014) } -DefinitionBlock( - "external.aml", // Output filename - "DSDT", // Signature - 0x02, // DSDT Revision - "Intel", // OEMID - "Many", // TABLE ID - 0x00000001 // OEM Revision - ) { - - // All declarations - Include("../../../../runtime/cntl/DECL.asl") - Include("../../../../runtime/collections/functional/external/DECL.asl") - - Method(MAIN) { - - // Initialization - STRT(0) - - // Run verification methods - Include("../../../../runtime/collections/functional/external/RUN.asl") - - // Final actions - Store(FNSH(), Local7) - - return (Local7) - } -} - - |