diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-02 12:44:49 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-02 12:44:49 -0800 |
commit | aa449f08f0dfd1fb3581ab0c40b7633f718be7e3 (patch) | |
tree | 207a4e88b32640cafe0ca47011e661b4000ff0fc /tests | |
parent | 1190bdc0c0a81a4ee711ce6d4eb46e275308d1d4 (diff) |
use -idirafter instead of -I for our system dirs, to allow overriding
Diffstat (limited to 'tests')
-rw-r--r-- | tests/runner.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/runner.py b/tests/runner.py index 83042d65..b0df18b3 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -137,14 +137,13 @@ class RunnerCore(unittest.TestCase): try: # Make sure we notice if compilation steps failed os.remove(f + '.o') - os.remove(f + '.o.ll') except: pass - output = Popen([Building.COMPILER, '-emit-llvm'] + COMPILER_OPTS + Building.COMPILER_TEST_OPTS + - ['-I', dirname, '-I', os.path.join(dirname, 'include')] + - map(lambda include: '-I' + include, includes) + - ['-c', f, '-o', f + '.o'], - stdout=PIPE, stderr=STDOUT).communicate()[0] + args = [Building.COMPILER, '-emit-llvm'] + COMPILER_OPTS + Building.COMPILER_TEST_OPTS + \ + ['-I', dirname, '-I', os.path.join(dirname, 'include')] + \ + map(lambda include: '-I' + include, includes) + \ + ['-c', f, '-o', f + '.o'] + output = Popen(args, stdout=PIPE).communicate()[0] assert os.path.exists(f + '.o'), 'Source compilation error: ' + output os.chdir(cwd) @@ -1390,6 +1389,7 @@ if 'benchmark' not in str(sys.argv) and 'sanity' not in str(sys.argv): def test_alloca(self): src = ''' #include <stdio.h> + #include <stdlib.h> int main() { char *pc; |