Failing test cases in 0.9 when compiled against gcc-4.7.0-4.fc17
I had to apply a patch to get 0.9 to pass the test suite against gcc-4.7.0-4.fc17
Opening this ticket to track things
Imported from trac issue 42. Created by dmalcolm on 2012-05-09T11:04:15, last modified: 2012-11-29T16:09:09
Trac comment by dmalcolm on 2012-05-09 11:14:32:
Patch can be seen at http://pkgs.fedoraproject.org/gitweb/?p=gcc-python-plugin.git;a=blob_plain;f=gcc-python-plugin-0.9-failing-tests.patch;hb=a81f3a40bddeb097f8c5474cdae4d0f82d440120
Trac comment by dmalcolm on 2012-05-09 11:16:40:
3 tests are failing: tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O tests/cpychecker/refcounts/storage_regions/static/correct due to: (Py_ssize_t) -> (long int) {{{
- r->ob_refcnt: (Py_ssize_t)val [-0x7fffffffffffffff <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:46
- r->ob_refcnt: (long int)val [-0x7fffffffffffffff <= val <= 0x7fffffffffffffff] from tests/cpychecker/refcounts/storage_regions/static/correct/input.c:46 }}} These values seem to be coming from a: Py_INCREF(cache);
1 other test is failing: {{{ tests/plugin/functions
- str(stmt): 'keywords = {CLOBBER};'
- repr(stmt): 'gcc.GimpleAssign()'
- str(stmt.lhs): 'keywords'
- +gimple[5]: }}}
git latest has the above 4: {{{ tests/cpychecker/refcounts/PyArg_ParseTuple/correct_O tests/cpychecker/refcounts/PyArg_ParseTupleAndKeywords/correct_O tests/cpychecker/refcounts/storage_regions/static/correct tests/plugin/functions }}} plus 2 extra failures: {{{ tests/cpychecker/refcounts/cplusplus/destructor tests/cpychecker/refcounts/cplusplus/empty-function }}}
Trac comment by dmalcolm on 2012-11-29 16:09:09:
Updated for 0.11 to http://pkgs.fedoraproject.org/cgit/gcc-python-plugin.git/plain/gcc-python-plugin-0.11-failing-tests.patch