aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-07-24 23:26:45 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-08-21 19:00:48 +0200
commit93b34981fa6f82e49ffe90ba8b6f0fefbfba281e (patch)
tree6e09ee176e6a045bf9dd214219aec8a92a2cbc51 /tests/data
parent014ed7c22f51463dfbf4566d9d2d7fe959a392ad (diff)
test1148: disable if decimal separator is not point
Modifying the locale with environment variables doesn't work for native Windows applications. Just disable the test in this case if the decimal separator is something different than a point. Use a precheck with a small C program to achieve that. Closes https://github.com/curl/curl/pull/2786
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/test11483
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/data/test1148 b/tests/data/test1148
index bf65aa411..47fb5a5d4 100644
--- a/tests/data/test1148
+++ b/tests/data/test1148
@@ -37,6 +37,9 @@ progress-bar
<command>
http://%HOSTIP:%HTTPPORT/1148 -# --stderr log/stderrlog1148
</command>
+<precheck>
+perl -e '$ENV{"LC_NUMERIC"} = "en_US.UTF-8"; system("./libtest/chkdecimalpoint") and die("Test requires point as decimal separator");'
+</precheck>
<setenv>
LC_ALL=
LC_NUMERIC=en_US.UTF-8