galeb

Једноставна статичка дистрибуција заснована на musl-у
git clone https://git.sr.ht/~strahinja/galeb
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

musl-realpath.patch (751B)


      1 https://gitlab.alpinelinux.org/alpine/aports/-/issues/12295
      2 
      3 ----
      4 test-canonicalize.c:339: assertion 'strcmp (result1, "/") == 0' failed
      5 Aborted (core dumped)
      6 FAIL test-canonicalize (exit status: 134)
      7 ----
      8 
      9 diff --git a/tests/test-canonicalize-lgpl.c b/tests/test-canonicalize-lgpl.c
     10 index ff82981..17842e8 100644
     11 --- a/tests/test-canonicalize-lgpl.c
     12 +++ b/tests/test-canonicalize-lgpl.c
     13 @@ -196,8 +196,8 @@ main (void)
     14  #ifndef __MVS__
     15      if (SAME_INODE (st1, st2))
     16        {
     17 -        ASSERT (strcmp (result1, "/") == 0);
     18 -        ASSERT (strcmp (result2, "/") == 0);
     19 +        ASSERT (strcmp (result1, "/") == 0 || strcmp (result1, "//") == 0);
     20 +        ASSERT (strcmp (result2, "/") == 0 || strcmp (result2, "//") == 0);
     21        }
     22      else
     23  #endif