aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-04-21 13:23:17 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-04-21 13:23:17 -0700
commitb3f4022e35b34002f44aacde554cc8b3ea927500 (patch)
tree763a7509c11f25fc97cbff1bf98dc870ee36f654 /tests/runner.py
parente1de4d430a370a9cbf72e949307639b50f399c75 (diff)
fix for new python warning from last commit
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index dfa20bf6..cc40f7f3 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1985,6 +1985,8 @@ if 'benchmark' not in sys.argv:
### Tests for tools
def test_safe_heap(self):
+ global SAFE_HEAP, SAFE_HEAP_LINES
+
if not SAFE_HEAP: return
if LLVM_OPTS: return # LLVM can optimize away the intermediate |x|...
src = '''
@@ -2009,7 +2011,6 @@ if 'benchmark' not in sys.argv:
global COMPILER_TEST_OPTS; COMPILER_TEST_OPTS = ['-g']
- global SAFE_HEAP, SAFE_HEAP_LINES
SAFE_HEAP = 2
SAFE_HEAP_LINES = ["src.cpp:7"]