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
This commit is contained in:
Marcel Raad 2018-07-24 23:26:45 +02:00
parent 014ed7c22f
commit 93b34981fa
No known key found for this signature in database
GPG key ID: 33C416EFAE4D6F02
4 changed files with 54 additions and 0 deletions

View file

@ -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