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
This commit is contained in:
Aris Adamantiadis
2014-01-06 15:33:10 +01:00
parent ec307d9862
commit ebbf7988b9

View File

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