nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: use en_US.UTF-8 locale on macOS
[nit.git]
/
tests
/
tests.sh
diff --git
a/tests/tests.sh
b/tests/tests.sh
index
9587665
..
77da70a
100755
(executable)
--- a/
tests/tests.sh
+++ b/
tests/tests.sh
@@
-20,6
+20,11
@@
# Set lang do default to avoid failed tests because of locale
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
# Set lang do default to avoid failed tests because of locale
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
+if uname | grep Darwin 1>/dev/null 2>&1; then
+ export LANG=en_US.UTF-8
+ export LC_ALL=en_US.UTF-8
+fi
+
export NIT_TESTING=true
# Use the pid as a collision prevention
export NIT_TESTING_ID=$$
export NIT_TESTING=true
# Use the pid as a collision prevention
export NIT_TESTING_ID=$$