commit 2b991551ed11256b14ce447dbef8222efd612d82
Author: David Malcolm <dmalcolm(a)redhat.com>
Date: Tue Nov 29 16:32:13 2011 -0500
make test suite's handling of function pointer types more robust
Don't depend on a precise (and arbitrary) numeric ID for function types
Makes tests/cpychecker/absinterp/function-pointers more robust
run-test-suite.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/run-test-suite.py b/run-test-suite.py
index fa51c37..98bf748 100644
--- a/run-test-suite.py
+++ b/run-test-suite.py
@@ -98,6 +98,10 @@ class TestStream:
line = re.sub('VarDecl\(([0-9]+)\)', 'VarDecl(nnnn)', line)
line = re.sub('LabelDecl\(([0-9]+)\)', 'LabelDecl(nnnn)',
line)
+ # Remove exact numbers from types
+ # (e.g. from "int (*<T513>) (int)" to "int
(*<Tnnn>) (int)"):
+ line = re.sub('<T([0-9]+)>', '<Tnnn>', line)
+
# Remove exact path to Python header file and line number
# e.g.
# unknown struct PyObject * from /usr/include/python2.7/pyerrors.h:135
Show replies by date