diff options
-rw-r--r-- | patches/README | 6 | ||||
-rw-r--r-- | tests/runner.py | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/patches/README b/patches/README index 26bb7fea..f6817fed 100644 --- a/patches/README +++ b/patches/README @@ -1,10 +1,4 @@ This directory contains a useful mercurial patch queue. -To use it, link .hg/patches to it (it isn't possible to add .hg/patches itself directly, hence the need for this), using something like - - ln -s patches .hg/patches - -After doing so, |hg qpush| sauer, and then running |python tests/runner.py| will run only sauer, using v8, and without optimizations or relooping. - Note to patch queue maintainer: You need to manually copy from .hg/patches into this directory, after |qrefresh|ing the patch. diff --git a/tests/runner.py b/tests/runner.py index 4d2c51c3..1c063a61 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -678,8 +678,16 @@ class T(unittest.TestCase): # XXX Warning: Running this in SpiderMonkey can lead to an extreme amount of memory being # used, see Mozilla bug 593659. + # XXX Need to run without RELOOPING. + # With those caveats, will pass successfully def zzztest_sauer(self): - self.do_test(path_from_root(['tests', 'sauer']), 'Hello sauer world!', main_file='command.cpp') + global PARSER_ENGINE + try: + old = PARSER_ENGINE + PARSER_ENGINE = V8_ENGINE + self.do_test(path_from_root(['tests', 'sauer']), 'Hello from sauer', main_file='command.cpp') + finally: + PARSER_ENGINE = old if __name__ == '__main__': if DEBUG: print "LLVM_GCC:", LLVM_GCC |