commit 6232685704b161235b6a80f3beea236b069445cb
Author: David Malcolm <dmalcolm(a)redhat.com>
Date: Fri Sep 2 17:59:44 2011 -0400
cpychecker: update selftest to reflect better implementation of PyString_FromFormat
.../refcounts/subclass/handling/stdout.txt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/cpychecker/refcounts/subclass/handling/stdout.txt b/tests/cpychecker/refcounts/subclass/handling/stdout.txt
index 8fb97fb..43112a6 100644
--- a/tests/cpychecker/refcounts/subclass/handling/stdout.txt
+++ b/tests/cpychecker/refcounts/subclass/handling/stdout.txt
@@ -3,10 +3,10 @@ Trace 0:
'PyString_FromFormat() succeeds'
'returning'
Return value:
- repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39), region=RegionOnHeap('new ref from (unknown) PyString_FromFormat', gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39)))
- str(): (struct PyObject *)&RegionOnHeap('new ref from (unknown) PyString_FromFormat', gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39)) from tests/cpychecker/refcounts/subclass/handling/input.c:39
+ repr(): PointerToRegion(gcctype='struct PyObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39), region=RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39)))
+ str(): (struct PyObject *)&RegionOnHeap('PyStringObject', gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39)) from tests/cpychecker/refcounts/subclass/handling/input.c:39
r->ob_refcnt: refs: 1 + N where N >= 0
- r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39), region=Region('PyTypeObject for new ref from (unknown) PyString_FromFormat'))
+ r->ob_type: PointerToRegion(gcctype='struct PyTypeObject *', loc=gcc.Location(file='tests/cpychecker/refcounts/subclass/handling/input.c', line=39), region=RegionForGlobal(gcc.VarDecl('PyString_Type')))
Region("region-for-arg-gcc.ParmDecl('self')"):
repr(): Region("region-for-arg-gcc.ParmDecl('self')")
str(): Region("region-for-arg-gcc.ParmDecl('self')")