aboutsummaryrefslogtreecommitdiffstats
path: root/main/m4/musl-realpath.patch
blob: 22f15ff84446fce43e151a973261b3ce229a44a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
https://gitlab.alpinelinux.org/alpine/aports/-/issues/12295

----
test-canonicalize.c:339: assertion 'strcmp (result1, "/") == 0' failed
Aborted (core dumped)
FAIL test-canonicalize (exit status: 134)
----

diff --git a/tests/test-canonicalize-lgpl.c b/tests/test-canonicalize-lgpl.c
index ff82981..17842e8 100644
--- a/tests/test-canonicalize-lgpl.c
+++ b/tests/test-canonicalize-lgpl.c
@@ -196,8 +196,8 @@ main (void)
 #ifndef __MVS__
     if (SAME_INODE (st1, st2))
       {
-        ASSERT (strcmp (result1, "/") == 0);
-        ASSERT (strcmp (result2, "/") == 0);
+        ASSERT (strcmp (result1, "/") == 0 || strcmp (result1, "//") == 0);
+        ASSERT (strcmp (result2, "/") == 0 || strcmp (result2, "//") == 0);
       }
     else
 #endif