|
1 |
| -# Copyright 2011, 2012 David Malcolm <dmalcolm@redhat.com> |
2 |
| -# Copyright 2011, 2012 Red Hat, Inc. |
| 1 | +# Copyright 2011, 2012, 2013, 2014 David Malcolm <dmalcolm@redhat.com> |
| 2 | +# Copyright 2011, 2012, 2013, 2014 Red Hat, Inc. |
3 | 3 | #
|
4 | 4 | # This is free software: you can redistribute it and/or modify it
|
5 | 5 | # under the terms of the GNU General Public License as published by
|
@@ -621,6 +621,18 @@ def exclude_tests_below(path):
|
621 | 621 | exclude_test('tests/cpychecker/refcounts/cplusplus/destructor')
|
622 | 622 | exclude_test('tests/cpychecker/refcounts/cplusplus/empty-function')
|
623 | 623 |
|
| 624 | +# GCC 4.6.3 appears not to have a way to get at global variables; see: |
| 625 | +# https://fedorahosted.org/gcc-python-plugin/ticket/21 |
| 626 | +# and: |
| 627 | +# https://github.com/davidmalcolm/gcc-python-plugin/issues/5 |
| 628 | +# This prevents these from working: |
| 629 | +# libcpychecker.compat.get_exception_decl_by_name |
| 630 | +# libcpychecker.compat.get_typeobject_decl_by_name |
| 631 | +# which renders much of cpychecker unusable. |
| 632 | +# For now, disable many of the tests on 4.6.*: |
| 633 | +if GCC_VERSION == 4006: |
| 634 | + exclude_tests_below('tests/cpychecker/refcounts') |
| 635 | + |
624 | 636 | def run_one_test(testdir):
|
625 | 637 | try:
|
626 | 638 | sys.stdout.write('%s: ' % testdir)
|
|
0 commit comments