diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-13 13:47:02 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-13 13:47:02 -0800 |
commit | 1f8340aaed3d4b5271ac0e4aa252597b212fdd39 (patch) | |
tree | b11db1d9e3b084b4bbdcae41619d7932398db639 /tests/runner.py | |
parent | 7453def33e4df4225453da2d0407658b3a711cda (diff) |
fix temp dir leaks in sanity checks. #706
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index dfe435a7..922631a6 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -6116,6 +6116,8 @@ def process(filename): for debug in [1,2]: self.assertIdentical(open('release.js').read().replace('\n\n', '\n').replace('\n\n', '\n'), open('debug%d.js' % debug).read().replace('\n\n', '\n').replace('\n\n', '\n')) # EMCC_DEBUG=1 mode must not generate different code! print >> sys.stderr, 'debug check %d passed too' % debug + + try_delete(CANONICAL_TEMP_DIR) else: print >> sys.stderr, 'not doing debug check' @@ -10227,6 +10229,8 @@ fi self.assertContained('hello from emcc with no config file', run_js(os.path.join(dirname, 'a.out.js'))) shutil.rmtree(dirname) + try_delete(CANONICAL_TEMP_DIR) + def test_emcc_caching(self): INCLUDING_MESSAGE = 'emcc: including X' BUILDING_MESSAGE = 'emcc: building X for cache' @@ -10300,6 +10304,8 @@ fi assert ERASING_MESSAGE in output assert not os.path.exists(EMCC_CACHE) + try_delete(CANONICAL_TEMP_DIR) + def test_relooper(self): restore() for phase in range(2): # 0: we wipe the relooper dir. 1: we have it, so should just update |