Bug 1268024: Fix the use of -g for wasm test cases; r=lth
authorBenjamin Bouvier <benj@benj.me>
Mon, 20 Jun 2016 18:03:23 +0200
changeset 343453 25d979f7c932e272ff80dfc5dd303674bcd6f21a
parent 343452 28f16fa4bc48177695fa7b44c8031dd2bacbd526
child 343454 38c84afa8cde50514366e23d4405457c276361da
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslth
bugs1268024
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1268024: Fix the use of -g for wasm test cases; r=lth MozReview-Commit-ID: H3xdFapHnXg
js/src/jit-test/jit_test.py
js/src/tests/lib/jittests.py
--- a/js/src/jit-test/jit_test.py
+++ b/js/src/jit-test/jit_test.py
@@ -190,16 +190,17 @@ def main(argv):
         options.read_tests = options.retest
         options.write_failures = options.retest
 
     test_list = []
     read_all = True
 
     # Forbid running several variants of the same asmjs test, when debugging.
     options.can_test_also_noasmjs = not options.debugger
+    options.can_test_also_wasm_baseline = not options.debugger
 
     if test_args:
         read_all = False
         for arg in test_args:
             test_list += jittests.find_tests(arg)
 
     if options.read_tests:
         read_all = False
--- a/js/src/tests/lib/jittests.py
+++ b/js/src/tests/lib/jittests.py
@@ -218,17 +218,18 @@ class JitTest:
                     elif name == 'test-also-noasmjs':
                         if options.can_test_also_noasmjs:
                             test.test_also.append(['--no-asmjs'])
                             # test-also-noasmjs is a sure indicator that the file contains asm.js code;
                             # in that case we want to test the wasm baseline compiler too, as asm.js
                             # is translated to wasm
                             test.test_also.append(['--wasm-always-baseline'])
                     elif name == 'test-also-wasm-baseline':
-                        test.test_also.append(['--wasm-always-baseline'])
+                        if options.can_test_also_wasm_baseline:
+                            test.test_also.append(['--wasm-always-baseline'])
                     elif name.startswith('test-also='):
                         test.test_also.append([name[len('test-also='):]])
                     elif name.startswith('test-join='):
                         test.test_join.append([name[len('test-join='):]])
                     elif name == 'module':
                         test.is_module = True
                     elif name.startswith('--'):
                         # // |jit-test| --ion-gvn=off; --no-sse4