You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2011/01/04 15:45:49 UTC
svn commit: r1055065 - in /subversion/trunk: build/run_tests.py
subversion/tests/cmdline/davautocheck.sh
subversion/tests/cmdline/svnserveautocheck.sh
Author: philip
Date: Tue Jan 4 14:45:49 2011
New Revision: 1055065
URL: http://svn.apache.org/viewvc?rev=1055065&view=rev
Log:
Run all tests in a known locale.
* build/run_tests.py: Set C locale.
* subversion/tests/cmdline/svnserveautocheck.sh: Set C locale
* subversion/tests/cmdline/davautocheck.sh: Set C locale
Modified:
subversion/trunk/build/run_tests.py
subversion/trunk/subversion/tests/cmdline/davautocheck.sh
subversion/trunk/subversion/tests/cmdline/svnserveautocheck.sh
Modified: subversion/trunk/build/run_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1055065&r1=1055064&r2=1055065&view=diff
==============================================================================
--- subversion/trunk/build/run_tests.py (original)
+++ subversion/trunk/build/run_tests.py Tue Jan 4 14:45:49 2011
@@ -53,6 +53,10 @@ try:
except AttributeError:
my_getopt = getopt.getopt
+# Ensure the compiled C tests use a known locale (Python tests set the locale
+# explicitly).
+os.environ['LC_ALL'] = 'C'
+
class TextColors:
'''Some ANSI terminal constants for output color'''
ENDC = '\033[0;m'
Modified: subversion/trunk/subversion/tests/cmdline/davautocheck.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/davautocheck.sh?rev=1055065&r1=1055064&r2=1055065&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/davautocheck.sh (original)
+++ subversion/trunk/subversion/tests/cmdline/davautocheck.sh Tue Jan 4 14:45:49 2011
@@ -70,6 +70,10 @@ SCRIPT=$(basename $0)
trap stop_httpd_and_die SIGHUP SIGTERM SIGINT
+# Ensure the server uses a known locale.
+LC_ALL=C
+export LC_ALL
+
function stop_httpd_and_die() {
[ -e "$HTTPD_PID" ] && kill $(cat "$HTTPD_PID")
exit 1
Modified: subversion/trunk/subversion/tests/cmdline/svnserveautocheck.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svnserveautocheck.sh?rev=1055065&r1=1055064&r2=1055065&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svnserveautocheck.sh (original)
+++ subversion/trunk/subversion/tests/cmdline/svnserveautocheck.sh Tue Jan 4 14:45:49 2011
@@ -39,6 +39,10 @@ set +e
trap trap_cleanup SIGHUP SIGTERM SIGINT
+# Ensure the server uses a known locale.
+LC_ALL=C
+export LC_ALL
+
function really_cleanup() {
if [ -e "$SVNSERVE_PID" ]; then
kill $(cat "$SVNSERVE_PID")