diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-05 13:25:12 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-05 13:25:12 -0800 |
commit | f3004cd212cfbb9966b65dd54ca25aea642d6ee3 (patch) | |
tree | cb7fd1e7c9e2d848520ad66c59762f08f3ce6e34 | |
parent | 897604ccb031e9cf1bb9138a71b661d1a0528426 (diff) |
skip test_llvm_nativizer if no gnu as present
-rwxr-xr-x | tests/runner.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index da37583d..3cefe331 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -8099,6 +8099,11 @@ fixture: interfaces --test: test can call interface methods that return nothing''', output) def test_llvm_nativizer(self): + try: + Popen(['as', '--version'], stdout=PIPE, stderr=PIPE).communicate() + except: + return self.skip('no gnu as, cannot run nativizer') + # avoid impure_ptr problems etc. shutil.copyfile(path_from_root('tests', 'files.cpp'), os.path.join(self.get_dir(), 'files.cpp')) open(os.path.join(self.get_dir(), 'somefile.binary'), 'w').write('''waka waka############################''') |