Bug 73651 - tests fail if $XDG_DATA_DIRS is not set
Summary: tests fail if $XDG_DATA_DIRS is not set
Status: RESOLVED FIXED
Alias: None
Product: Zeitgeist
Classification: Unclassified
Component: Engine (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: zeitgeist-bugs@lists.freedesktop.org
QA Contact: zeitgeist-bugs@lists.freedesktop.org
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-15 07:40 UTC by Martin Pitt
Modified: 2014-01-27 21:32 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
fix (1.32 KB, patch)
2014-01-15 07:40 UTC, Martin Pitt
Details | Splinter Review

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.