aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-09 17:26:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-09 17:26:38 -0800
commitf6d1ec0eb335433a3f93597867f46b487c124e63 (patch)
tree37f6488074a31a2245aed96c7078d21623ea2b3c
parentb41145cc84edf93c0b7ad77477a3b98753a2c6d7 (diff)
simplify test_lifetime
-rwxr-xr-xtests/runner.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 684047e7..6b0a63da 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -6737,17 +6737,9 @@ def process(filename):
def test_lifetime(self):
if self.emcc_args is None: return self.skip('test relies on emcc opts')
- try:
- os.environ['EMCC_LEAVE_INPUTS_RAW'] = '1'
-
- self.do_ll_run(path_from_root('tests', 'lifetime.ll'), 'hello, world!\n')
- if '-O1' in self.emcc_args or '-O2' in self.emcc_args:
- assert 'a18' not in open(os.path.join(self.get_dir(), 'src.cpp.o.js')).read(), 'lifetime stuff and their vars must be culled'
- else:
- assert 'a18' in open(os.path.join(self.get_dir(), 'src.cpp.o.js')).read(), "without opts, it's there"
-
- finally:
- del os.environ['EMCC_LEAVE_INPUTS_RAW']
+ self.do_ll_run(path_from_root('tests', 'lifetime.ll'), 'hello, world!\n')
+ if '-O1' in self.emcc_args or '-O2' in self.emcc_args:
+ assert 'a18' not in open(os.path.join(self.get_dir(), 'src.cpp.o.js')).read(), 'lifetime stuff and their vars must be culled'
# Test cases in separate files. Note that these files may contain invalid .ll!
# They are only valid enough for us to read for test purposes, not for llvm-as