aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <sunfish@google.com>2014-02-10 16:37:59 -0800
committerDan Gohman <sunfish@google.com>2014-02-10 16:40:31 -0800
commit5afcd4860e7cc14596536874e13de71c4b7326af (patch)
tree172a878cb4a8b183a3e95268590ead32e36cb32e
parent6342cd7fbcc63e544b4e7a3e7602a3a44e162385 (diff)
Suppress useless warnings in the tests.
The tests are intentionally adding absolute include paths, so add -Wno-warn-absolute-paths to suppress warnings about them.
-rw-r--r--tests/test_core.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 70f12c7a..b9b617db 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -4720,7 +4720,7 @@ return malloc(size);
def test_gcc_unmangler(self):
if os.environ.get('EMCC_FAST_COMPILER') != '1': Settings.NAMED_GLOBALS = 1 # test coverage for this; fastcomp never names globals
- Building.COMPILER_TEST_OPTS += ['-I' + path_from_root('third_party')]
+ Building.COMPILER_TEST_OPTS += ['-I' + path_from_root('third_party'), '-Wno-warn-absolute-paths']
self.do_run(open(path_from_root('third_party', 'gcc_demangler.c')).read(), '*d_demangle(char const*, int, unsigned int*)*', args=['_ZL10d_demanglePKciPj'])
@@ -4909,6 +4909,7 @@ def process(filename):
Building.COMPILER_TEST_OPTS += [
'-I' + path_from_root('tests', 'freetype', 'include'),
'-I' + path_from_root('tests', 'poppler', 'include'),
+ '-Wno-warn-absolute-paths'
]
Settings.INVOKE_RUN = 0 # We append code that does run() ourselves
@@ -5164,7 +5165,7 @@ def process(filename):
def test_fuzz(self):
if Settings.USE_TYPED_ARRAYS != 2: return self.skip('needs ta2')
- Building.COMPILER_TEST_OPTS += ['-I' + path_from_root('tests', 'fuzz')]
+ Building.COMPILER_TEST_OPTS += ['-I' + path_from_root('tests', 'fuzz'), '-Wno-warn-absolute-paths']
def run_all(x):
print x