aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2014-01-06 15:33:10 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2014-01-06 16:17:38 +0100
commitebbf7988b9e3a9d85365b4230bd0a6c9297a1003 (patch)
treeebcd8acf7be67cf433577419678e785b70bbb5d9
parentec307d986268a1ff4e2f8d4ba0e7fc6059efbd75 (diff)
downloadlibssh-ebbf7988b9e3a9d85365b4230bd0a6c9297a1003.tar.gz
libssh-ebbf7988b9e3a9d85365b4230bd0a6c9297a1003.tar.xz
libssh-ebbf7988b9e3a9d85365b4230bd0a6c9297a1003.zip
tests: use LC_LIBSSH instead of LANG for env tests.
LANG is stripped and replaced on many distros and LC_* is accepted by default on debian
-rw-r--r--tests/client/torture_request_env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/client/torture_request_env.c b/tests/client/torture_request_env.c
index dbe7fb21..3e34e45e 100644
--- a/tests/client/torture_request_env.c
+++ b/tests/client/torture_request_env.c
@@ -72,7 +72,7 @@ static void torture_request_env(void **state)
rc = ssh_channel_open_session(c);
assert_int_equal(rc, SSH_OK);
- rc = ssh_channel_request_env(c, "LANG", "LIBSSH");
+ rc = ssh_channel_request_env(c, "LC_LIBSSH", "LIBSSH");
assert_int_equal(rc, SSH_OK);
rc = ssh_channel_request_exec(c, "bash -c export");
@@ -85,7 +85,7 @@ static void torture_request_env(void **state)
assert_int_equal(rc, nbytes);
#endif
- if (strstr(buffer, "LANG=\"LIBSSH\"")) {
+ if (strstr(buffer, "LC_LIBSSH=\"LIBSSH\"")) {
lang_found = 1;
break;
}