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 533569 - Environment is not set properly for regression tests
Environment is not set properly for regression tests
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
git master
Other Linux
: Normal trivial
: 1.0
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-17 14:23 UTC by Bertrand Lorentz
Modified: 2008-05-18 06:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Sets additional environment variable when running tests (460 bytes, patch)
2008-05-17 14:28 UTC, Bertrand Lorentz
committed Details | Review

Description Bertrand Lorentz 2008-05-17 14:23:16 UTC
When you run "make test", the following unit tests fail, depending on your locale and timezone :
StringUtilTests.TestDoubleToTenthsPrecision
QueryTests.TestQueryValueSql

This happens because some environment variable are not set when the tests are run. I'll attach a patch for test/Makefile.am.
Comment 1 Bertrand Lorentz 2008-05-17 14:28:16 UTC
Created attachment 111047 [details] [review]
Sets additional environment variable when running tests

I choose the "America/Chicago" as a timezone because it was the first I found that worked. Italians living in Chicago should make nice test users... ;)