Bug 73651

Summary: tests fail if $XDG_DATA_DIRS is not set
Product: Zeitgeist Reporter: Martin Pitt <martin.pitt>
Component: EngineAssignee: zeitgeist-bugs <zeitgeist-bugs>
Status: RESOLVED FIXED QA Contact: zeitgeist-bugs <zeitgeist-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: fix

Description Martin Pitt 2014-01-15 07:40:06 UTC
When building zeitgeist packages in a Debian/Ubuntu build environment there is a very limited environment. In particular, there is no $XDG_DATA_DIRS which makes the tests fail:

$ cat test/c/test-suite.log 
=============================================
   zeitgeist 0.9.14: test/c/test-suite.log
=============================================

# TOTAL: 6
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test-event
================

/Zeitgeist/Event/CreateEmpty: 
(/tmp/zeitgeist-0.9.14/test/c/.libs/lt-test-event:32762): GLib-CRITICAL **: g_setenv: assertion 'value != NULL' failed

FAIL: test-datasource
=====================

/Zeitgeist/DataSource/CreateEmpty: 
(/tmp/zeitgeist-0.9.14/test/c/.libs/lt-test-datasource:369): GLib-CRITICAL **: g_setenv: assertion 'value != NULL' failed
Comment 1 Martin Pitt 2014-01-15 07:40:51 UTC
Created attachment 92116 [details] [review]
fix
Comment 2 Seif Lotfy 2014-01-27 21:32:21 UTC
fixed in master

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.