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 771339 - Test: tracker-backend.vala:211: Falling back to bus backend
Test: tracker-backend.vala:211: Falling back to bus backend
Status: RESOLVED FIXED
Product: grilo
Classification: Other
Component: general
0.3.x
Other Linux
: Normal normal
: ---
Assigned To: grilo-maint
grilo-maint
Depends on:
Blocks:
 
 
Reported: 2016-09-13 02:21 UTC by gnome.vrb
Modified: 2016-09-14 20:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tests: Fix registry test with Tracker plugin (1.01 KB, patch)
2016-09-14 11:04 UTC, Bastien Nocera
committed Details | Review

Description gnome.vrb 2016-09-13 02:21:02 UTC
Was trying to run the tests.

dev@unstable:~/source/apt/grilo/libgrilo-0.3.2/grilo-0.3.2$  make check
...
...
make[2]: Entering directory '/local/packages/source/apt/grilo/libgrilo-0.3.2/grilo-0.3.2/tests'
make  check-local
make[3]: Entering directory '/local/packages/source/apt/grilo/libgrilo-0.3.2/grilo-0.3.2/tests'
TEST: registry... (pid=27870)
  /registry/init:                                                      OK
  /registry/load:                                                      
(/home/dev/source/apt/grilo/libgrilo-0.3.2/grilo-0.3.2/tests/.libs/lt-registry:27870): Tracker-WARNING **: tracker-backend.vala:211: Falling back to bus backend, the direct backend failed to initialize: Locale mismatch, cannot use direct connection
FAIL
GTester: last random seed: R02S5dd0e8bcafe932e13c0fed5e5c96504a
/bin/bash: line 1: 27869 Terminated              gtester --verbose registry
Makefile:798: recipe for target 'test' failed
make[3]: *** [test] Error 143
Comment 1 gnome.vrb 2016-09-13 02:21:27 UTC
Configuration

        Version               : 0.3.2
        Prefix                : /usr
        Compiler              : gcc

        Enable debug          : yes
        Enable tests          : yes

        Enable docs           : yes

        Introspection support : yes
        Vala support          : yes

        Enable Test UI        : yes

        GrlNet support        : yes
        GrlPls support        : yes
Comment 2 Bastien Nocera 2016-09-14 11:04:27 UTC
Created attachment 335508 [details] [review]
tests: Fix registry test with Tracker plugin

The tracker plugin expects the client and daemon to run with the same
locale to do direct connection, and throws a warning if not.

Set the locale correctly in the test to avoid that problem.
Comment 3 gnome.vrb 2016-09-14 18:06:44 UTC
Works fine with the above patch.

make[2]: Entering directory '/local/packages/source/apt/grilo/libgrilo-0.3.2/grilo-0.3.2/tests'
TEST: registry... (pid=26867)
  /registry/init:                                                      OK
  /registry/load:                                                      OK
  /registry/unregister:                                                OK
PASS: registry
Comment 4 Bastien Nocera 2016-09-14 19:51:54 UTC
Attachment 335508 [details] pushed as 74dbc23 - tests: Fix registry test with Tracker plugin
Comment 5 gnome.vrb 2016-09-14 20:05:53 UTC
Thanks !