aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-06 18:16:50 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-06 18:16:50 -0800
commit517c66e69e217fca8bce1e0bc08d28448e0ee429 (patch)
treecc6f1a15689a8939dcff68b8462845cdfdc17edf
parente67317ef6b8674f4520f5778a485be611e5cf9cd (diff)
fix test_linespecific and test_pgo
-rwxr-xr-xtests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 9e809cfd..4add6330 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6746,6 +6746,7 @@ def process(filename):
assert 'Assertion failed' in str(e), str(e)
def test_linespecific(self):
+ if '-g' not in Building.COMPILER_TEST_OPTS: Building.COMPILER_TEST_OPTS.append('-g')
if self.emcc_args: self.emcc_args += ['--llvm-opts', '0'] # llvm full opts make the expected failures here not happen
Settings.CHECK_SIGNS = 0
@@ -6902,6 +6903,7 @@ def process(filename):
Settings.CORRECT_SIGNS = 0
def test_pgo(self):
+ if '-g' not in Building.COMPILER_TEST_OPTS: Building.COMPILER_TEST_OPTS.append('-g')
Settings.PGO = Settings.CHECK_OVERFLOWS = Settings.CORRECT_OVERFLOWS = Settings.CHECK_SIGNS = Settings.CORRECT_SIGNS = 1
src = '''