summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2013-12-25 04:17:50 -0800
committerSimon Feltman <sfeltman@src.gnome.org>2014-01-04 13:48:27 -0800
commit9d8d159c28a482de6bdaa06f3805f65d3c55e958 (patch)
tree6a0050bae709f575b851d76710e6455cc32cc6cc /tests
parent795e4bf1f3dc24380964367714ebaa76588cbf67 (diff)
downloadgobject-introspection-9d8d159c28a482de6bdaa06f3805f65d3c55e958.tar.gz
scanner: Fix parsing for various typedef struct orderings
Add structs parsed from C's "tag namespace" into their own cache for lookup by typdef parsing. This fixes issues where a typedef declared after a struct would not have a correct name. This also cleans up the need for special casing struct tags prefixed with an underscore. https://bugzilla.gnome.org/show_bug.cgi?id=581525
Diffstat (limited to 'tests')
-rw-r--r--tests/scanner/Makefile.am1
-rw-r--r--tests/scanner/test_transformer.py3
2 files changed, 0 insertions, 4 deletions
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am
index 7a154b38..f697b4b4 100644
--- a/tests/scanner/Makefile.am
+++ b/tests/scanner/Makefile.am
@@ -196,7 +196,6 @@ PYTESTS = \
test_sourcescanner.py \
test_transformer.py
-XFAIL_TESTS = Typedefs-1.0.gir
TESTS = Headeronly-1.0.gir $(CHECKGIRS) $(CHECKDOCS) $(TYPELIBS) $(PYTESTS)
TESTS_ENVIRONMENT = srcdir=$(srcdir) top_srcdir=$(top_srcdir) builddir=$(builddir) top_builddir=$(top_builddir) \
PYTHON=$(PYTHON) UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir)
diff --git a/tests/scanner/test_transformer.py b/tests/scanner/test_transformer.py
index abfce187..7f4f98de 100644
--- a/tests/scanner/test_transformer.py
+++ b/tests/scanner/test_transformer.py
@@ -70,7 +70,6 @@ class TestStructTypedefs(unittest.TestCase):
self.assertFalse(node.disguised)
self.assertEqual(len(node.fields), 1)
- @unittest.expectedFailure
def test_typedef_after(self):
load_namespace_from_source_string(self.namespace, """
struct _TestStruct {
@@ -85,7 +84,6 @@ class TestStructTypedefs(unittest.TestCase):
self.assertFalse(node.disguised)
self.assertEqual(len(node.fields), 1)
- @unittest.expectedFailure
def test_tag_and_typedef(self):
load_namespace_from_source_string(self.namespace, """
typedef struct _TestStruct {
@@ -163,7 +161,6 @@ class TestStructTypedefs(unittest.TestCase):
self.assertEqual(len(shared.fields), 0)
self.assertEqual(shared.ctype, 'TestStructAlias')
- @unittest.expectedFailure
def test_struct_tag_aliases_after(self):
load_namespace_from_source_string(self.namespace, """
struct _TestStruct {