Skip to content

Commit 71b79f4

Browse files
committed
Some testsuite fixes for GCC 5
1 parent 0b8fbbe commit 71b79f4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

run-test-suite.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,9 @@ def exclude_tests_below(path):
659659
# repr() for gcc.CaseLabelExpr and gcc.GimpleLabel
660660
exclude_test('tests/plugin/switch')
661661

662+
if GCC_VERSION >= 5000:
663+
# Avoid warning from -Wshift-count-negative
664+
exclude_test('tests/cpychecker/absinterp/arithmetic/negative-shift/definite')
662665

663666
def run_one_test(testdir):
664667
try:

testcpychecker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ def assertFindsError(self, src, experr):
9797
experr = experr.replace('$(SRCFILE):14:26:', '$(SRCFILE):14:10:')
9898
experr = experr.replace('$(SRCFILE):14:37:', '$(SRCFILE):14:10:')
9999
experr = experr.replace('$(SRCFILE):17:26:', '$(SRCFILE):17:10:')
100+
if GCC_VERSION >= 5000:
101+
experr = experr.replace('$(SRCFILE):12:5:', '$(SRCFILE):12:12:')
102+
experr = experr.replace('$(SRCFILE):13:5:', '$(SRCFILE):13:12:')
100103
if isinstance(src, SimpleModule):
101104
sm = src
102105
else:

tests/cpychecker/absinterp/comparisons/conditionals/input.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
Test that we can cope with various kinds of comparisons
2424
*/
2525

26+
extern void should_not_be_reached(void);
27+
extern void should_be_reached(void);
28+
2629
extern void __cpychecker_log(const char *);
2730

2831
int test_conditionals(void)

0 commit comments

Comments
 (0)