mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
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:
@@ -72,7 +72,7 @@ static void torture_request_env(void **state)
|
|||||||
rc = ssh_channel_open_session(c);
|
rc = ssh_channel_open_session(c);
|
||||||
assert_int_equal(rc, SSH_OK);
|
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);
|
assert_int_equal(rc, SSH_OK);
|
||||||
|
|
||||||
rc = ssh_channel_request_exec(c, "bash -c export");
|
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);
|
assert_int_equal(rc, nbytes);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (strstr(buffer, "LANG=\"LIBSSH\"")) {
|
if (strstr(buffer, "LC_LIBSSH=\"LIBSSH\"")) {
|
||||||
lang_found = 1;
|
lang_found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user