summaryrefslogtreecommitdiff
path: root/tests/warn
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-11-04 13:12:12 -0400
committerColin Walters <walters@verbum.org>2010-11-09 13:56:43 -0500
commitf43f3a722323448dfce514a2b435390fd837ddee (patch)
treeebc3b6ebf329848a92d467b050ca8abf5e2e2daf /tests/warn
parent2681a9dcb1182d8b0fc34fbb341d77a0a13c65f2 (diff)
downloadgobject-introspection-f43f3a722323448dfce514a2b435390fd837ddee.tar.gz
Switch to nonrecursive make for core (i.e. not tests/)
This is cleaner and faster, and prepares us better for an incoming import of CMPH.
Diffstat (limited to 'tests/warn')
-rw-r--r--tests/warn/Makefile.am2
-rw-r--r--tests/warn/warningtester.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/warn/Makefile.am b/tests/warn/Makefile.am
index 3cd44b00..8b44cfcb 100644
--- a/tests/warn/Makefile.am
+++ b/tests/warn/Makefile.am
@@ -15,5 +15,5 @@ TESTS = \
EXTRA_DIST = warningtester.py common.h $(TESTS)
-TESTS_ENVIRONMENT = PYTHONPATH=$(top_builddir):$(top_srcdir) TOP_BUILDDIR=$(top_builddir) $(PYTHON) $(srcdir)/warningtester.py
+TESTS_ENVIRONMENT = PYTHONPATH=$(top_builddir):$(top_srcdir) TOP_BUILDDIR=$(top_builddir) UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) $(PYTHON) $(srcdir)/warningtester.py
diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py
index d43b6d5e..f8f55655 100644
--- a/tests/warn/warningtester.py
+++ b/tests/warn/warningtester.py
@@ -4,6 +4,10 @@ import os.path
import sys
from StringIO import StringIO
+path=os.getenv('UNINSTALLED_INTROSPECTION_SRCDIR', None)
+assert path is not None
+sys.path.insert(0, path)
+
from giscanner.annotationparser import AnnotationParser
from giscanner.ast import Include, Namespace
from giscanner.introspectablepass import IntrospectablePass