After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675049 - error in tests: assertion failed: (g_irepository_require (repo, "Regress", NULL, 0, NULL))
error in tests: assertion failed: (g_irepository_require (repo, "Regress", NU...
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
1.32.x
Other Linux
: Normal major
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-04-29 02:21 UTC by ankitvishwakarma0301
Modified: 2015-02-07 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tests: work around make check warning (1.78 KB, patch)
2012-07-05 19:23 UTC, Dieter Verfaillie
accepted-commit_now Details | Review
tests: work around make check warning (1.55 KB, patch)
2012-10-31 15:03 UTC, Dieter Verfaillie
committed Details | Review

Description ankitvishwakarma0301 2012-04-29 02:21:17 UTC
the following error occurs while performing make check in beyond linux from scratch

root [ /sources/gobject-introspection-1.32.1 ]# make check
make  check-recursive
make[1]: Entering directory `/sources/gobject-introspection-1.32.1'
Making check in .
make[2]: Entering directory `/sources/gobject-introspection-1.32.1'
make   
make[3]: Entering directory `/sources/gobject-introspection-1.32.1'
make  all-recursive
make[4]: Entering directory `/sources/gobject-introspection-1.32.1'
Making all in .
make[5]: Entering directory `/sources/gobject-introspection-1.32.1'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/sources/gobject-introspection-1.32.1'
Making all in docs
make[5]: Entering directory `/sources/gobject-introspection-1.32.1/docs'
Making all in reference
make[6]: Entering directory `/sources/gobject-introspection-1.32.1/docs/reference'
make[6]: Nothing to be done for `all'.
make[6]: Leaving directory `/sources/gobject-introspection-1.32.1/docs/reference'
make[6]: Entering directory `/sources/gobject-introspection-1.32.1/docs'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/sources/gobject-introspection-1.32.1/docs'
make[5]: Leaving directory `/sources/gobject-introspection-1.32.1/docs'
Making all in tests
make[5]: Entering directory `/sources/gobject-introspection-1.32.1/tests'
make  all-recursive
make[6]: Entering directory `/sources/gobject-introspection-1.32.1/tests'
Making all in .
make[7]: Entering directory `/sources/gobject-introspection-1.32.1/tests'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/sources/gobject-introspection-1.32.1/tests'
Making all in scanner
make[7]: Entering directory `/sources/gobject-introspection-1.32.1/tests/scanner'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/scanner'
Making all in repository
make[7]: Entering directory `/sources/gobject-introspection-1.32.1/tests/repository'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/repository'
Making all in offsets
make[7]: Entering directory `/sources/gobject-introspection-1.32.1/tests/offsets'
make  all-am
make[8]: Entering directory `/sources/gobject-introspection-1.32.1/tests/offsets'
make[8]: Nothing to be done for `all-am'.
make[8]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/offsets'
make[7]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/offsets'
Making all in warn
make[7]: Entering directory `/sources/gobject-introspection-1.32.1/tests/warn'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/warn'
make[6]: Leaving directory `/sources/gobject-introspection-1.32.1/tests'
make[5]: Leaving directory `/sources/gobject-introspection-1.32.1/tests'
make[4]: Leaving directory `/sources/gobject-introspection-1.32.1'
make[3]: Leaving directory `/sources/gobject-introspection-1.32.1'
make  check-local
make[3]: Entering directory `/sources/gobject-introspection-1.32.1'
gtester --verbose cmph-bdz-test gthash-test
TEST: cmph-bdz-test... (pid=9030)
  /cmph-bdz/search:                                                    OK
  /cmph-bdz/search-packed:                                             OK
PASS: cmph-bdz-test
TEST: gthash-test... (pid=9032)
  /gthash/build-retrieve:                                              OK
PASS: gthash-test
  PEP-8 INQUISITION
make[3]: Leaving directory `/sources/gobject-introspection-1.32.1'
make[2]: Leaving directory `/sources/gobject-introspection-1.32.1'
Making check in docs
make[2]: Entering directory `/sources/gobject-introspection-1.32.1/docs'
Making check in reference
make[3]: Entering directory `/sources/gobject-introspection-1.32.1/docs/reference'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/sources/gobject-introspection-1.32.1/docs/reference'
make[3]: Entering directory `/sources/gobject-introspection-1.32.1/docs'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/sources/gobject-introspection-1.32.1/docs'
make[2]: Leaving directory `/sources/gobject-introspection-1.32.1/docs'
Making check in tests
make[2]: Entering directory `/sources/gobject-introspection-1.32.1/tests'
  CC     everything.lo
  CCLD   libeverything-1.0.la
  GEN    Everything-1.0.gir
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c -o /sources/gobject-introspection-1.32.1/tests/tmp-introspectZ6oddg/Everything-1.0.o /sources/gobject-introspection-1.32.1/tests/tmp-introspectZ6oddg/Everything-1.0.c
g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC gcc -o /sources/gobject-introspection-1.32.1/tests/tmp-introspectZ6oddg/Everything-1.0 -export-dynamic /sources/gobject-introspection-1.32.1/tests/tmp-introspectZ6oddg/Everything-1.0.o -L. libeverything-1.0.la -pthread -Wl,--export-dynamic -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0
libtool: link: gcc -o /sources/gobject-introspection-1.32.1/tests/tmp-introspectZ6oddg/Everything-1.0 /sources/gobject-introspection-1.32.1/tests/tmp-introspectZ6oddg/Everything-1.0.o -pthread -Wl,--export-dynamic -Wl,--export-dynamic  -L. ./.libs/libeverything-1.0.a /usr/lib/libgio-2.0.so -lz -lresolv /usr/lib/libgobject-2.0.so /usr/lib/libffi.so /usr/lib/libgthread-2.0.so -lelf /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so /lib/libpcre.so -lpthread -lrt -pthread
  GEN    Everything-1.0.typelib
  CC     gimarshallingtests.lo
gimarshallingtests.c: In function '_callback':
gimarshallingtests.c:3793:5: warning: comparison between pointer and integer [enabled by default]
  CCLD   libgimarshallingtests-1.0.la
  GEN    GIMarshallingTests-1.0.gir
g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I.. -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c -o /sources/gobject-introspection-1.32.1/tests/tmp-introspectvkuvJ1/GIMarshallingTests-1.0.o /sources/gobject-introspection-1.32.1/tests/tmp-introspectvkuvJ1/GIMarshallingTests-1.0.c
g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC gcc -o /sources/gobject-introspection-1.32.1/tests/tmp-introspectvkuvJ1/GIMarshallingTests-1.0 -export-dynamic /sources/gobject-introspection-1.32.1/tests/tmp-introspectvkuvJ1/GIMarshallingTests-1.0.o -L. libgimarshallingtests-1.0.la -pthread -Wl,--export-dynamic -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0
libtool: link: gcc -o /sources/gobject-introspection-1.32.1/tests/tmp-introspectvkuvJ1/GIMarshallingTests-1.0 /sources/gobject-introspection-1.32.1/tests/tmp-introspectvkuvJ1/GIMarshallingTests-1.0.o -pthread -Wl,--export-dynamic -Wl,--export-dynamic  -L. ./.libs/libgimarshallingtests-1.0.a /usr/lib/libgio-2.0.so -lz -lresolv /usr/lib/libgobject-2.0.so /usr/lib/libffi.so /usr/lib/libgthread-2.0.so -lelf /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so /lib/libpcre.so -lpthread -lrt -pthread
  GEN    GIMarshallingTests-1.0.typelib
make  check-recursive
make[3]: Entering directory `/sources/gobject-introspection-1.32.1/tests'
Making check in .
make[4]: Entering directory `/sources/gobject-introspection-1.32.1/tests'
make  libeverything-1.0.la libgimarshallingtests-1.0.la
make[5]: Entering directory `/sources/gobject-introspection-1.32.1/tests'
make[5]: `libeverything-1.0.la' is up to date.
make[5]: `libgimarshallingtests-1.0.la' is up to date.
make[5]: Leaving directory `/sources/gobject-introspection-1.32.1/tests'
make[4]: Leaving directory `/sources/gobject-introspection-1.32.1/tests'
Making check in scanner
make[4]: Entering directory `/sources/gobject-introspection-1.32.1/tests/scanner'
make  libannotation.la libtestinherit.la libfoo.la libutility.la libgtkfrob.la libgettype.la  barapp
make[5]: Entering directory `/sources/gobject-introspection-1.32.1/tests/scanner'
  CC     annotation.lo
  CCLD   libannotation.la
  CC     drawable.lo
  CCLD   libtestinherit.la
  CC     foo.lo
  CCLD   libfoo.la
  CC     utility.lo
  CCLD   libutility.la
  CC     gtkfrob.lo
  CCLD   libgtkfrob.la
  CC     gettype.lo
  CCLD   libgettype.la
  CC     barapp.o
  CCLD   barapp
make[5]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/scanner'
make  check-local
make[5]: Entering directory `/sources/gobject-introspection-1.32.1/tests/scanner'
  GEN    Headeronly-1.0.gir
Must specify package names on the command line
  GISCAN Utility-1.0.gir
  GISCAN Annotation-1.0.gir
  TEST  Annotation-1.0.gir
  GISCAN TestInherit-1.0.gir
  TEST  TestInherit-1.0.gir
  GISCAN Foo-1.0.gir
  TEST  Foo-1.0.gir
  TEST  Utility-1.0.gir
  GISCAN GtkFrob-1.0.gir
  TEST  GtkFrob-1.0.gir
  GISCAN GetType-1.0.gir
<unknown>:: Warning: GetType: function 'object_nonmeta2_get_type' returns 'Type(target_fundamental=gboolean, ctype=gboolean)', not a GType
<unknown>:: Warning: GetType: function 'object_nonmeta_get_gtype' returns 'Type(target_fundamental=gboolean, ctype=gboolean)', not a GType
<unknown>:: Warning: GetType: function 'object_nonmeta2_get_type' returns 'Type(target_fundamental=gboolean, ctype=gboolean)', not a GType
<unknown>:: Warning: GetType: function 'object_nonmeta_get_gtype' returns 'Type(target_fundamental=gboolean, ctype=gboolean)', not a GType
  TEST  GetType-1.0.gir
  GISCAN Bar-1.0.gir
  TEST  Bar-1.0.gir
  GICOMP Annotation-1.0.gir
  GICOMP TestInherit-1.0.gir
  GICOMP Foo-1.0.gir
  GICOMP Utility-1.0.gir
  GICOMP GtkFrob-1.0.gir
  GICOMP GetType-1.0.gir
  GICOMP Bar-1.0.gir
make[5]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/scanner'
make[4]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/scanner'
Making check in repository
make[4]: Entering directory `/sources/gobject-introspection-1.32.1/tests/repository'
make  gitestrepo gitestthrows gitypelibtest
make[5]: Entering directory `/sources/gobject-introspection-1.32.1/tests/repository'
  CC     gitestrepo-gitestrepo.o
  CCLD   gitestrepo
  CC     gitestthrows-gitestthrows.o
  CCLD   gitestthrows
  CC     gitypelibtest-gitypelibtest.o
  CCLD   gitypelibtest
make[5]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/repository'
make  check-TESTS
make[5]: Entering directory `/sources/gobject-introspection-1.32.1/tests/repository'
Successfully found GCancellable
PASS: gitestrepo
PASS: gitestthrows
**
ERROR:./gitypelibtest.c:164:test_fundamental_get_ref_function_pointer: assertion failed: (g_irepository_require (repo, "Regress", NULL, 0, NULL))
/bin/sh: line 5: 11762 Aborted                 env GI_TYPELIB_PATH=../..:../../gir:../../tests:../../tests/scanner: XDG_DATA_DIRS="../../gir:/usr/share:/usr/local/share:/usr/share" ${dir}$tst
FAIL: gitypelibtest
=============================================================================================
1 of 3 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection
=============================================================================================
make[5]: *** [check-TESTS] Error 1
make[5]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/repository'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/sources/gobject-introspection-1.32.1/tests/repository'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/sources/gobject-introspection-1.32.1/tests'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/sources/gobject-introspection-1.32.1/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/sources/gobject-introspection-1.32.1'
make: *** [check] Error 2
Comment 1 Dieter Verfaillie 2012-07-05 19:23:12 UTC
Created attachment 218119 [details] [review]
tests: work around make check warning

Have been running into this for a while now, but it manifested itself as
a warning only. Attached patch works around the issue (porting the tests
to non-recursive automake would be a more complete fix).
Comment 2 Colin Walters 2012-07-05 20:35:19 UTC
Review of attachment 218119 [details] [review]:

I tend to avoid having actual output dumps in the git logs; in this case it's just one line, but a complete backtrace would add a lot of noise.

Also can you drop the "Fixes " prefix before the bug link?  See https://live.gnome.org/GnomeLove/SubmittingPatches

Other than these completely minor bits about the commit message, looks good.
Comment 3 Dieter Verfaillie 2012-10-31 15:03:40 UTC
Created attachment 227732 [details] [review]
tests: work around make check warning

(In reply to comment #2)
> Other than these completely minor bits about the commit message, looks good.

Commit message adjusted. Thanks for the review :)
Comment 4 Colin Walters 2012-10-31 15:13:46 UTC
Review of attachment 227732 [details] [review]:

Looks good, thanks!
Comment 5 Dieter Verfaillie 2012-10-31 18:03:22 UTC
Thanks, pushed as 046fbbac8730fe7ca578596fb71eb96fc77cfb93.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 6 André Klapper 2015-02-07 16:55:32 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]