aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-27 09:12:07 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-11-27 09:12:07 -0800
commit9c26a959a2dbd512e3c8f6aec04b59c25470dd39 (patch)
tree9387cf946ba20b3785f8cf5a4a6dd85b8027ed1a /tests
parent3aa07e9f4e78d3da295de908a83c2e815a3ddfc4 (diff)
avoid unnecessary disk IO in test_gcc_unmangler
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 1d85b3df..6c4be115 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5956,7 +5956,11 @@ void*:16
self.do_run(path_from_root('tests', 'cubescript'), '*\nTemp is 33\n9\n5\nhello, everyone\n*', main_file='command.cpp')
def test_gcc_unmangler(self):
- self.do_run(path_from_root('third_party'), '*d_demangle(char const*, int, unsigned int*)*', args=['_ZL10d_demanglePKciPj'], main_file='gcc_demangler.c')
+ #Settings.NUM_NAMED_GLOBALS = 0 # test coverage for this
+
+ Building.COMPILER_TEST_OPTS = ['-I' + path_from_root('third_party')]
+
+ self.do_run(open(path_from_root('third_party', 'gcc_demangler.c')).read(), '*d_demangle(char const*, int, unsigned int*)*', args=['_ZL10d_demanglePKciPj'])
#### Code snippet that is helpful to search for nonportable optimizations ####
#global LLVM_OPT_OPTS