diff options
-rw-r--r-- | tests/warn/Makefile.am | 2 | ||||
-rw-r--r-- | tests/warn/warningtester.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/warn/Makefile.am b/tests/warn/Makefile.am index 921ec593..81c7442b 100644 --- a/tests/warn/Makefile.am +++ b/tests/warn/Makefile.am @@ -10,5 +10,5 @@ TESTS = \ EXTRA_DIST = warningtester.py common.h $(TESTS) -TESTS_ENVIRONMENT = PYTHONPATH=$(top_builddir):$(top_srcdir) $(PYTHON) $(srcdir)/warningtester.py +TESTS_ENVIRONMENT = PYTHONPATH=$(top_builddir):$(top_srcdir) TOP_BUILDDIR=$(top_builddir) $(PYTHON) $(srcdir)/warningtester.py diff --git a/tests/warn/warningtester.py b/tests/warn/warningtester.py index 909a07af..2948c747 100644 --- a/tests/warn/warningtester.py +++ b/tests/warn/warningtester.py @@ -16,6 +16,8 @@ from giscanner.scannermain import process_packages currentdir = os.path.dirname(os.path.abspath(sys.argv[0])) current_name = os.path.basename(currentdir) path = os.path.abspath(os.path.join(currentdir, '..', '')) +top_builddir = os.environ['TOP_BUILDDIR'] +girpath = os.path.join(top_builddir, 'gir') class Options: def __init__(self): @@ -70,6 +72,7 @@ def check(args): output=output) logger.enable_warnings(True) transformer = Transformer(namespace) + transformer.set_include_paths([girpath]) transformer.register_include(Include.from_string("GObject-2.0")) ss = SourceScanner() |