Skip to content

Commit 8e0729e

Browse files
committed
Disable many of the selftests on gcc 4.6
1 parent b73b362 commit 8e0729e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

run-test-suite.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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.
33
#
44
# This is free software: you can redistribute it and/or modify it
55
# under the terms of the GNU General Public License as published by
@@ -621,6 +621,18 @@ def exclude_tests_below(path):
621621
exclude_test('tests/cpychecker/refcounts/cplusplus/destructor')
622622
exclude_test('tests/cpychecker/refcounts/cplusplus/empty-function')
623623

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+
624636
def run_one_test(testdir):
625637
try:
626638
sys.stdout.write('%s: ' % testdir)

0 commit comments

Comments
 (0)