1
1

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
Этот коммит содержится в:
Aris Adamantiadis 2014-01-06 15:33:10 +01:00
родитель f3e3700063
Коммит 0571360f37

Просмотреть файл

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