Debian Codegraph @

debian/patches/2003-disable-expand_tilde_unix-test.patch

raw
1 Description: Disable torture_path_expand_tilde_unix, its not working well on buildd
2 On buildd, the HOME is set to a non-existing directory, this makes
3 torture_path_expand_tilde_unix fail
4 Author: Laurent Bigonville <[email protected]>
5 Forwarded: not-needed
6 Last-Update: 2024-09-02
7
8 Index: libssh/tests/unittests/torture_misc.c
9 ===================================================================
10 --- libssh.orig/tests/unittests/torture_misc.c
11 +++ libssh/tests/unittests/torture_misc.c
12 @@ -1293,7 +1293,7 @@ int torture_run_tests(void) {
13 #ifdef _WIN32
14 cmocka_unit_test(torture_path_expand_tilde_win),
15 #else
16 - cmocka_unit_test(torture_path_expand_tilde_unix),
17 +// cmocka_unit_test(torture_path_expand_tilde_unix),
18 #endif
19 cmocka_unit_test_setup_teardown(torture_path_expand_escape,
20 setup,
21 Index: libssh/tests/unittests/torture_config.c
22 ===================================================================
23 --- libssh.orig/tests/unittests/torture_config.c
24 +++ libssh/tests/unittests/torture_config.c
25 @@ -2672,7 +2672,7 @@ static void torture_config_make_absolute
26 {
27 ssh_session session = *state;
28 char *result = NULL;
29 -#ifndef _WIN32
30 +#if 0
31 char h[256] = {0};
32 char *user = NULL;
33 char *home = NULL;
34 @@ -2716,7 +2716,7 @@ static void torture_config_make_absolute
35 assert_string_equal(result, "/tmp/ssh/my_config");
36 free(result);
37
38 -#ifndef _WIN32
39 +#if 0
40 /* Tilde expansion works only in user config */
41 result = ssh_config_make_absolute(session, "~/.ssh/config.d/*.conf", 0);
42 snprintf(h, 256 - 1, "%s/.ssh/config.d/*.conf", home);