[gobject-introspection] Bug 592055 - Build/test fixes



commit a1b7488c718cb6a26d1152885d8fbe1e0abb9895
Author: Colin Walters <walters verbum org>
Date:   Mon Aug 17 07:46:22 2009 -0400

    Bug 592055 - Build/test fixes
    
    The last few commits regressed 'check'; fix those up.

 giscanner/dumper.py       |    2 --
 giscanner/girwriter.py    |    2 --
 giscanner/transformer.py  |    3 ++-
 giscanner/utils.py        |    3 ++-
 tests/offsets/Makefile.am |    2 +-
 5 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index adfe88b..0637e5c 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -94,8 +94,6 @@ class DumpCompiler(object):
     # Public API
 
     def run(self):
-        print '  GEN   ' + (self._options.output and
-                            self._options.output or '<stdout>')
         c_path = self._generate_tempfile('.c')
         f = open(c_path, 'w')
         f.write(_PROGRAM_TEMPLATE)
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index aad55ef..7725a38 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -21,8 +21,6 @@
 
 from __future__ import with_statement
 
-import os
-
 from .ast import (Alias, Array, Bitfield, Callback, Class, Constant, Enum,
                   Function, Interface, List, Map, Member, Struct, Union,
                   Varargs)
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 10d88df..bacdfab 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -501,7 +501,8 @@ class Transformer(object):
     def _create_const(self, symbol):
         # Don't create constants for non-public things
         # http://bugzilla.gnome.org/show_bug.cgi?id=572790
-        if symbol.source_filename is None or not symbol.source_filename.endswith('.h'):
+        if (symbol.source_filename is None or
+            not symbol.source_filename.endswith('.h')):
             return None
         name = self.remove_prefix(symbol.ident)
         if symbol.const_string is not None:
diff --git a/giscanner/utils.py b/giscanner/utils.py
index 29a5560..00d7a88 100644
--- a/giscanner/utils.py
+++ b/giscanner/utils.py
@@ -95,7 +95,8 @@ def get_libtool_command(options):
         return libtool_path.split(' ')
 
     try:
-        subprocess.check_call(['libtool', '--version'])
+        subprocess.check_call(['libtool', '--version'],
+                              stdout=open(os.devnull))
     except subprocess.CalledProcessError, e:
         # If libtool's not installed, assume we don't need it
         return None
diff --git a/tests/offsets/Makefile.am b/tests/offsets/Makefile.am
index c725bbc..e27bedb 100644
--- a/tests/offsets/Makefile.am
+++ b/tests/offsets/Makefile.am
@@ -54,7 +54,7 @@ CLEANFILES += gitestoffsets.c
 
 check-local: offsets-1.0.typelib
 	LD_LIBRARY_PATH=$(top_builddir)/girepository/.libs:$(builddir)/.libs$${LD_LIBRARY_PATH:+:$$LD_LIBRARY_PATH} \
-	 GI_TYPELIB_PATH=:$(top_builddir)/gir gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected
+	 GI_TYPELIB_PATH=:$(top_builddir)/gir ./gitestoffsets$(EXEEXT) offsets.compiled offsets.introspected
 	diff -u offsets.compiled offsets.introspected
 
 CLEANFILES += offsets.compiled offsets.introspected



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]