summaryrefslogtreecommitdiff
path: root/test/lib-blacklist-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-05 13:30:50 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-11 15:43:37 -0400
commit4f556e1b9896b77e7b0f74afddad5fd8c1892641 (patch)
tree0c513cdd29c0aca5f45828e901e70c198a5c61f7 /test/lib-blacklist-test.sh
parent8443cad920a59918069dbee3891b4b9595c528a3 (diff)
test: set LANG=C when parsing the output
Diffstat (limited to 'test/lib-blacklist-test.sh')
-rw-r--r--test/lib-blacklist-test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib-blacklist-test.sh b/test/lib-blacklist-test.sh
index 049a2a7..9c8e84d 100644
--- a/test/lib-blacklist-test.sh
+++ b/test/lib-blacklist-test.sh
@@ -110,7 +110,7 @@ it_downloads_the_blacklist_repeatedly() {
}
it_displays_help_and_fails_with_no_args() {
- libreblacklist >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
+ LANG=C libreblacklist >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
[[ $stat != 0 ]]
[[ -z "$(cat $tmpdir/stdout)" ]]
@@ -118,14 +118,14 @@ it_displays_help_and_fails_with_no_args() {
}
it_displays_help_when_given_h() {
- libreblacklist -h >$tmpdir/stdout 2>$tmpdir/stderr
+ LANG=C libreblacklist -h >$tmpdir/stdout 2>$tmpdir/stderr
[[ "$(sed 1q $tmpdir/stdout)" =~ 'Usage: libreblacklist ' ]]
[[ -z "$(cat $tmpdir/stderr)" ]]
}
it_displays_help_when_given_h_cat() {
- libreblacklist -h cat >$tmpdir/stdout 2>$tmpdir/stderr
+ LANG=C libreblacklist -h cat >$tmpdir/stdout 2>$tmpdir/stderr
[[ "$(sed 1q $tmpdir/stdout)" =~ 'Usage: libreblacklist cat' ]]
[[ -z "$(cat $tmpdir/stderr)" ]]