OLD | NEW |
(Empty) | |
| 1 --- tests/Makefile.am |
| 2 +++ tests/Makefile.am |
| 3 @@ -11,7 +11,7 @@ |
| 4 test-thread.h \ |
| 5 test-unknown.h |
| 6 |
| 7 -noinst_LTLIBRARIES = testhelper.la |
| 8 +check_LTLIBRARIES = testhelper.la |
| 9 linked_LIBS = testhelper.la |
| 10 |
| 11 testhelper_la_LDFLAGS = -module -avoid-version |
| 12 @@ -47,6 +47,7 @@ |
| 13 cp $(top_srcdir)/gobject/*.py $(top_builddir)/gobject; \ |
| 14 cp $(top_srcdir)/gio/*.py $(top_builddir)/gio; \ |
| 15 fi |
| 16 + $(LN_S) .libs/testhelper.so testhelper.so |
| 17 @$(PYTHON) $(srcdir)/runtests.py $(top_builddir) $(top_srcdir) |
| 18 @if test "$(top_builddir)" != "$(top_srcdir)"; then \ |
| 19 rm -f $(top_builddir)/glib/*.py; \ |
| 20 @@ -58,8 +59,5 @@ |
| 21 @rm -fr $(top_builddir)/gio/*.pyc |
| 22 |
| 23 |
| 24 -all: $(LTLIBRARIES:.la=.so) |
| 25 clean-local: |
| 26 - rm -f $(LTLIBRARIES:.la=.so) |
| 27 -.la.so: |
| 28 - $(LN_S) .libs/$@ $@ || true |
| 29 + rm -f .libs/testhelper.so |
| 30 --- tests/runtests.py |
| 31 +++ tests/runtests.py |
| 32 @@ -6,6 +6,9 @@ |
| 33 |
| 34 import common |
| 35 |
| 36 +# Some tests fail with translated messages. |
| 37 +os.environ["LC_ALL"] = "C" |
| 38 + |
| 39 program = None |
| 40 if len(sys.argv) == 3: |
| 41 buildDir = sys.argv[1] |
| 42 --- tests/test_gio.py |
| 43 +++ tests/test_gio.py |
| 44 @@ -386,9 +386,10 @@ |
| 45 |
| 46 def testQueryWritableNamespaces(self): |
| 47 infolist = self.file.query_writable_namespaces() |
| 48 - for info in infolist: |
| 49 - if info.name == "xattr": |
| 50 - self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING) |
| 51 + if infolist: |
| 52 + for info in infolist: |
| 53 + if info.name == "xattr": |
| 54 + self.assertEqual(info.type, gio.FILE_ATTRIBUTE_TYPE_STRING) |
| 55 |
| 56 def testSetAttribute(self): |
| 57 self._f.write("testing attributes") |
OLD | NEW |