From 2bf4bef861c2927ab7c587f2b14dd1d79879157c Mon Sep 17 00:00:00 2001 From: vog Date: Sat, 18 Jun 2011 15:49:32 +0000 Subject: [PATCH] #776: ensure that the test drivers are not confused by the locale settings --- test/bugfixes-test.sh | 1 + test/conversions.sh | 1 + test/eps-test.sh | 2 ++ test/exiv2-test.sh | 1 + test/modify-test.sh | 1 + test/xmpparser-test.sh | 1 + 6 files changed, 7 insertions(+) diff --git a/test/bugfixes-test.sh b/test/bugfixes-test.sh index 4ccd053e..8359057d 100755 --- a/test/bugfixes-test.sh +++ b/test/bugfixes-test.sh @@ -1,5 +1,6 @@ #! /bin/sh # Test driver with regression tests for bugfixes +export LC_ALL=C results="./tmp/bugfixes-test.out" good="./data/bugfixes-test.out" diff --git a/test/conversions.sh b/test/conversions.sh index fb153da8..ae9a447d 100755 --- a/test/conversions.sh +++ b/test/conversions.sh @@ -10,6 +10,7 @@ fi # ---------------------------------------------------------------------- # Setup +export LC_ALL=C results="./tmp/conversions.out" good="./data/conversions.out" diff --git a/test/eps-test.sh b/test/eps-test.sh index 0479da8b..a2ec045f 100755 --- a/test/eps-test.sh +++ b/test/eps-test.sh @@ -1,6 +1,8 @@ #! /bin/sh # Test driver for EPS files +export LC_ALL=C + exiv2="$VALGRIND ../../src/exiv2" diffargs="--strip-trailing-cr" diff --git a/test/exiv2-test.sh b/test/exiv2-test.sh index 7e8c6747..2f358402 100755 --- a/test/exiv2-test.sh +++ b/test/exiv2-test.sh @@ -1,5 +1,6 @@ #! /bin/sh # Test driver for exiv2 utility tests +export LC_ALL=C exiv2="$VALGRIND exiv2 -u" results="./tmp/exiv2-test.out" good="./data/exiv2-test.out" diff --git a/test/modify-test.sh b/test/modify-test.sh index a62853be..b474dd6c 100755 --- a/test/modify-test.sh +++ b/test/modify-test.sh @@ -1,5 +1,6 @@ #! /bin/sh # Test driver for write unit tests to build Exif metadata from scratch +export LC_ALL=C results="./tmp/modify-test.out" good="./data/modify-test.out" diffargs="--strip-trailing-cr" diff --git a/test/xmpparser-test.sh b/test/xmpparser-test.sh index e597bc2c..c5a1bc9f 100755 --- a/test/xmpparser-test.sh +++ b/test/xmpparser-test.sh @@ -10,6 +10,7 @@ fi # ---------------------------------------------------------------------- # Setup +export LC_ALL=C results="./tmp/xmpparser-test.out" good="./data/xmpparser-test.out"