Commit f17865b6 authored by Jeremy Sanders's avatar Jeremy Sanders

Run self test as LANG=C

parent cec2ddc0
......@@ -6,6 +6,7 @@ veusz (1.15-1) UNRELEASED; urgency=low
* Replace patches with use of upstream setup.py options and symlinks
* Bumped Standards-Version to 3.9.3
* Do not run incorrectly failing self tests (Closes: #654604)
* Patch self test to run as LANG=C
* Update copyright header for released DEP5
-- Jeremy Sanders <jeremy@jeremysanders.net> Mon, 30 Apr 2012 19:21:00 +0100
......
Description: Fix build failure during self test on ARM platforms
These self tests fail on ARM, due to differences in floating point
precision. They do not indicate real problems. The tests are fixed
in the upstream development version, but a direct fix would be a very
large patch. This patch will no longer be required in >1.15.
precision. They do not indicate real problems. The tests are fixed in
the upstream development version, but a direct fix would be a very
large patch. We also patch the language variable to be C for the self
tests to work in various locales. These changes will no longer be
required in >1.15.
Origin: vendor
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654604
Forwarded: not-needed
Author: Jeremy Sanders <jeremy@jeremysanders.net>
Last-Update: 2012-04-25
--- a/tests/runselftest.py
+++ b/tests/runselftest.py
@@ -52,6 +52,15 @@
--- veusz-1.15.orig/tests/runselftest.py
+++ veusz-1.15/tests/runselftest.py
@@ -40,6 +40,7 @@
import glob
import os.path
import sys
+import os
import veusz.qtall as qt4
import veusz.utils.textrender
@@ -52,6 +53,15 @@
# it appears the failures aren't important however
excluded_tests = set([
......@@ -27,3 +37,12 @@ Last-Update: 2012-04-25
# fails on Windows
'histo.vsz', # duplicate in long list of values
'spectrum.vsz', # angstrom is split into two on linux
@@ -174,6 +184,8 @@
sys.exit(fails)
if __name__ == '__main__':
+ os.environ['LANG'] = 'C'
+
app = qt4.QApplication([])
veusz.setting.transient_settings['unsafe_mode'] = True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment