diff options
author | Robert Moore <Robert.Moore@intel.com> | 2013-12-10 09:12:20 -0800 |
---|---|---|
committer | Robert Moore <Robert.Moore@intel.com> | 2013-12-10 09:12:20 -0800 |
commit | 041ed76f6968e78433ff1043c75a2c899cfee23c (patch) | |
tree | 1894bdd06adf1973c123724559f77aea0de58263 /tests | |
parent | 97ecbe0b5e717fce4564fa591a1fa3ed87c46ab6 (diff) | |
download | acpica-041ed76f6968e78433ff1043c75a2c899cfee23c.tar.gz |
Tests/ASLTS: Fix all errors in the functional control group.
Corrected the expected value for Implicit Returns for
predicate operations (LNot, LEqual, etc).
Added Sleep operation cap for Timer verification test.
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/store.asl | 36 | ||||
-rw-r--r-- | tests/aslts/src/runtime/collections/functional/control/timing.asl | 9 |
2 files changed, 24 insertions, 21 deletions
diff --git a/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/store.asl b/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/store.asl index 389dfbe09..dfb9a6ab5 100644 --- a/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/store.asl +++ b/tests/aslts/src/runtime/collections/functional/control/ImplicitReturn/store.asl @@ -753,11 +753,10 @@ Method(mf6e,, Serialized) Store(m00b(), i000) if (tmp0) { CH03("", z138, 0x051, 0, 0) - if (y263) { - Store(0xabcd0008, Local0) - } else { - Store(Ones, Local0) - } + // Oct 2013, David Box + // Implicit return for logical opertions (LNot, LEqual, ...) + // returns logical value of the operation + Store(Ones, Local0) if (LNotEqual(i000, Local0)) { err("", z138, 0x052, 0, 0, i000, Local0) } @@ -774,11 +773,10 @@ Method(mf6e,, Serialized) Store(m00c(), i000) if (tmp0) { CH03("", z138, 0x055, 0, 0) - if (y263) { - Store(0xabcd0008, Local0) - } else { - Store(Zero, Local0) - } + // Oct 2013, David Box + // Implicit return for logical opertions (LNot, LEqual, ...) + // returns logical value of the operation + Store(Zero, Local0) if (LNotEqual(i000, Local0)) { err("", z138, 0x056, 0, 0, i000, Local0) } @@ -808,11 +806,10 @@ Method(mf6e,, Serialized) Store(m00e(), i000) if (tmp0) { CH03("", z138, 0x05d, 0, 0) - if (y263) { - Store(0xabcd0008, Local0) - } else { - Store(Ones, Local0) - } + // Oct 2013, David Box + // Implicit return for logical opertions (LNot, LEqual, ...) + // returns logical value of the operation + Store(Ones, Local0) if (LNotEqual(i000, Local0)) { err("", z138, 0x05e, 0, 0, i000, Local0) } @@ -829,11 +826,10 @@ Method(mf6e,, Serialized) Store(m00f(), i000) if (tmp0) { CH03("", z138, 0x061, 0, 0) - if (y263) { - Store(0xabcd0008, Local0) - } else { - Store(Zero, Local0) - } + // Oct 2013, David Box + // Implicit return for logical opertions (LNot, LEqual, ...) + // returns logical value of the operation + Store(Zero, Local0) if (LNotEqual(i000, Local0)) { err("", z138, 0x062, 0, 0, i000, Local0) } diff --git a/tests/aslts/src/runtime/collections/functional/control/timing.asl b/tests/aslts/src/runtime/collections/functional/control/timing.asl index 68ba61477..d632bff53 100644 --- a/tests/aslts/src/runtime/collections/functional/control/timing.asl +++ b/tests/aslts/src/runtime/collections/functional/control/timing.asl @@ -33,7 +33,7 @@ */ Name(z006, 6) - +Name(MSLP, 2000) // Max sleep (ms) defined in acconfig.h, Oct 2013 // Verifying 1-parameter, 0-result operator // @@ -57,6 +57,13 @@ Method(m0c8, 6) switch (arg4) { case (0) { + if (LLess(MSLP, Local0)) { + // Exceeding max allowable sleep time + Store("m0c8: Note, argument exceeds max defined time for Sleep.", + Debug); + Break + } + Store(Timer, Local1) Sleep(Local0) Store(Timer, Local2) |