Bug 592055 - Build/test fixes
authorColin Walters <walters@verbum.org>
Mon, 17 Aug 2009 11:46:22 +0000 (07:46 -0400)
committerColin Walters <walters@verbum.org>
Mon, 17 Aug 2009 11:46:22 +0000 (07:46 -0400)
The last few commits regressed 'check'; fix those up.

giscanner/dumper.py
giscanner/girwriter.py
giscanner/transformer.py
giscanner/utils.py
tests/offsets/Makefile.am

index adfe88b..0637e5c 100644 (file)
@@ -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)
index aad55ef..7725a38 100644 (file)
@@ -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)
index 10d88df..bacdfab 100644 (file)
@@ -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:
index 29a5560..00d7a88 100644 (file)
@@ -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
index c725bbc..e27bedb 100644 (file)
@@ -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