mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 03:47:16 +02:00
realpath is not required to normalize `//` into `/`, but the test assumes so. See #12295 See #12348
23 lines
751 B
Diff
23 lines
751 B
Diff
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
|