Closed
Bug 541554
Opened 14 years ago
Closed 14 years ago
6 Unit test fail for Treehydra
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 526299
People
(Reporter: martinbijl, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-us; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729) Build Identifier: http://hg.mozilla.org/rewriting-and-analysis/dehydra/ last change Thu, 14 Jan 2010 19:06:56 -0800 /treehydra.js:12: JS Exception: No case_val in this lazy object. In additional information a patch for a workaround. The hasOwnProperty method normally return false in case a property does not exist. Now it calls the treehydra.js unhandledLazyProperty which will throw the error. Reproducible: Always Steps to Reproduce: Follow build instructions on: https://developer.mozilla.org/En/Dehydra/Installing_Dehydra on Ubuntu 9.10. Then build dehydra and treehydra and run the unit tests with make check_treehydra Actual Results: bijl@build:~/gcc-dehydra/dehydra$ make check_treehydra make -C test check_treehydra make[1]: Entering directory `/home/bijl/gcc-dehydra/dehydra/test' python unit_test_harness.py treehydra "/home/bijl/gcc-dehydra/installed/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.4/cc1plus" .........x......x.x.......x.....x..x... Test Failure: Test command: /home/bijl/gcc-dehydra/installed/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.4/cc1plus -quiet -fplugin=../gcc_treehydra.so -o /dev/null -fplugin-arg=test_locks_good2.js locks_good2.cc Failure msg: Expected no error output, got error output :../libs/treehydra.js:12: JS Exception: No case_val in this lazy object :0: #0: Error("No case_val in this lazy object") ../libs/treehydra.js:12: #1: unhandledLazyProperty("case_val") ../libs/unstable/esp.js:481: #2: () ./esp_lock.js:41: #3: process_tree([object GCCNode]) Test Failure: Test command: /home/bijl/gcc-dehydra/installed/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.4/cc1plus -quiet -fplugin=../gcc_treehydra.so -o /dev/null -fplugin-arg=test_locks_bad2.js locks_bad2.cc Failure msg: Expected 'locks_bad2.cc:12: error: precondition not met' in error output; not found. stderr:../libs/treehydra.js:12: JS Exception: No case_val in this lazy object :0: #0: Error("No case_val in this lazy object") ../libs/treehydra.js:12: #1: unhandledLazyProperty("case_val") ../libs/unstable/esp.js:481: #2: () ./esp_lock.js:41: #3: process_tree([object GCCNode]) Test Failure: Test command: /home/bijl/gcc-dehydra/installed/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.4/cc1plus -quiet -fplugin=../gcc_treehydra.so -o /dev/null -fplugin-arg=test_locks_bad1.js locks_bad1.cc Failure msg: Expected 'locks_bad1.cc:11: error: precondition not met' in error output; not found. stderr:../libs/treehydra.js:12: JS Exception: No case_val in this lazy object :0: #0: Error("No case_val in this lazy object") ../libs/treehydra.js:12: #1: unhandledLazyProperty("case_val") ../libs/unstable/esp.js:481: #2: () ./esp_lock.js:41: #3: process_tree([object GCCNode]) Test Failure: Test command: /home/bijl/gcc-dehydra/installed/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.4/cc1plus -quiet -fplugin=../gcc_treehydra.so -o /dev/null -fplugin-arg=test_locks_bad3.js locks_bad3.cc Failure msg: Expected 'locks_bad3.cc:10: error: precondition not met' in error output; not found. stderr:../libs/treehydra.js:12: JS Exception: No case_val in this lazy object :0: #0: Error("No case_val in this lazy object") ../libs/treehydra.js:12: #1: unhandledLazyProperty("case_val") ../libs/unstable/esp.js:481: #2: () ./esp_lock.js:41: #3: process_tree([object GCCNode]) Test Failure: Test command: /home/bijl/gcc-dehydra/installed/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.4/cc1plus -quiet -fplugin=../gcc_treehydra.so -o /dev/null -fplugin-arg=test_locks_good.js locks_good.cc Failure msg: Expected no error output, got error output :../libs/treehydra.js:12: JS Exception: No case_val in this lazy object :0: #0: Error("No case_val in this lazy object") ../libs/treehydra.js:12: #1: unhandledLazyProperty("case_val") ../libs/unstable/esp.js:481: #2: () ./esp_lock.js:41: #3: process_tree([object GCCNode]) Test Failure: Test command: /home/bijl/gcc-dehydra/installed/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.4/cc1plus -quiet -fplugin=../gcc_treehydra.so -o /dev/null -fplugin-arg=test_locks_bad4.js locks_bad4.cc Failure msg: Expected 'locks_bad4.cc:13: error: precondition not met' in error output; not found. stderr:../libs/treehydra.js:12: JS Exception: No case_val in this lazy object :0: #0: Error("No case_val in this lazy object") ../libs/treehydra.js:12: #1: unhandledLazyProperty("case_val") ../libs/unstable/esp.js:481: #2: () ./esp_lock.js:41: #3: process_tree([object GCCNode]) Unit Test Suite Summary: 33 passed 6 failed 0 error(s) make[1]: *** [check_treehydra] Error 1 make[1]: Leaving directory `/home/bijl/gcc-dehydra/dehydra/test' make: *** [check_treehydra] Error 2 Expected Results: bijl@build:~/gcc-dehydra/dehydra$ make check_treehydra make -C test check_treehydra make[1]: Entering directory `/home/bijl/gcc-dehydra/dehydra/test' python unit_test_harness.py treehydra "/home/bijl/gcc-dehydra/installed/bin/../libexec/gcc/i686-pc-linux-gnu/4.3.4/cc1plus" ....................................... OK: 39 tests passed make[1]: Leaving directory `/home/bijl/gcc-dehydra/dehydra/test' diff -r d039748e7775 libs/unstable/esp.js --- a/libs/unstable/esp.js Thu Jan 14 19:06:56 2010 -0800 +++ b/libs/unstable/esp.js Sat Jan 23 00:28:12 2010 +0100 @@ -478,7 +478,7 @@ print (" edge state:"); e.state.list(); } - } else if (e.hasOwnProperty('case_val')) { + } else if (e.case_val&&e.hasOwnProperty('case_val')) { // Outgoing edges from a switch let truth = e.case_val; let edge_state = bb.stateOut.copy();
Reporter | ||
Updated•14 years ago
|
Flags: in-testsuite+
Summary: 6 Unit test fail → 6 Unit test fail for Treehydra
Updated•14 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•