bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnulib-tests/test-suite.log fails with musl libc 1.2.x


From: Natanael Copa
Subject: gnulib-tests/test-suite.log fails with musl libc 1.2.x
Date: Wed, 13 Jan 2021 17:45:27 +0100

This happens on Alpine linux (3.13.0_rc4) on aarch64, armv7, mips64,
ppc64le, s390x, x86 and x86_64.


The failure is:

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

Problem is that musl realpath("//", ...) returns "//", which is allowed
in POSIX.

This fixes it:

diff --git a/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c 
b/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c
index ff82981..17842e8 100644
--- a/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c
+++ b/gettext-tools/gnulib-tests/test-canonicalize-lgpl.c
@@ -208,8 +208,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



Full log is below.

=======================================================
   gettext-tools 0.20.2: gnulib-tests/test-suite.log
=======================================================

# TOTAL: 245
# PASS:  207
# SKIP:  37
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

SKIP: test-set-mode-acl.sh
==========================

Skipping test: insufficient ACL support
SKIP test-set-mode-acl.sh (exit status: 77)

SKIP: test-set-mode-acl-1.sh
============================

Skipping test: insufficient ACL support
SKIP test-set-mode-acl-1.sh (exit status: 77)

SKIP: test-set-mode-acl-2.sh
============================

Skipping test: insufficient ACL support
SKIP test-set-mode-acl-2.sh (exit status: 77)

SKIP: test-copy-acl.sh
======================

Skipping test: insufficient ACL support
SKIP test-copy-acl.sh (exit status: 77)

SKIP: test-copy-acl-1.sh
========================

Skipping test: insufficient ACL support
SKIP test-copy-acl-1.sh (exit status: 77)

SKIP: test-copy-acl-2.sh
========================

Skipping test: insufficient ACL support
SKIP test-copy-acl-2.sh (exit status: 77)

SKIP: test-btowc1.sh
====================

Skipping test: no traditional french locale is supported
SKIP test-btowc1.sh (exit status: 77)

SKIP: test-btowc2.sh
====================

Skipping test: no french Unicode locale is supported
SKIP test-btowc2.sh (exit status: 77)

FAIL: test-canonicalize-lgpl
============================

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

SKIP: test-file-has-acl.sh
==========================

Skipping test: insufficient ACL support
SKIP test-file-has-acl.sh (exit status: 77)

SKIP: test-file-has-acl-1.sh
============================

Skipping test: insufficient ACL support
SKIP test-file-has-acl-1.sh (exit status: 77)

SKIP: test-file-has-acl-2.sh
============================

Skipping test: insufficient ACL support
SKIP test-file-has-acl-2.sh (exit status: 77)

SKIP: test-mbrtowc1.sh
======================

Skipping test: no traditional french locale is supported
SKIP test-mbrtowc1.sh (exit status: 77)

SKIP: test-mbrtowc2.sh
======================

Skipping test: no french Unicode locale is supported
SKIP test-mbrtowc2.sh (exit status: 77)

SKIP: test-mbrtowc3.sh
======================

Skipping test: no traditional japanese locale is supported
SKIP test-mbrtowc3.sh (exit status: 77)

SKIP: test-mbrtowc4.sh
======================

Skipping test: no transitional chinese locale is supported
SKIP test-mbrtowc4.sh (exit status: 77)

SKIP: test-mbrtowc-w32-1.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-1.sh (exit status: 77)

SKIP: test-mbrtowc-w32-2.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-2.sh (exit status: 77)

SKIP: test-mbrtowc-w32-3.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-3.sh (exit status: 77)

SKIP: test-mbrtowc-w32-4.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-4.sh (exit status: 77)

SKIP: test-mbrtowc-w32-5.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-5.sh (exit status: 77)

SKIP: test-mbrtowc-w32-6.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-6.sh (exit status: 77)

SKIP: test-mbrtowc-w32-7.sh
===========================

Skipping test: not a native Windows system
SKIP test-mbrtowc-w32-7.sh (exit status: 77)

SKIP: test-mbsinit.sh
=====================

Skipping test: no french Unicode locale is supported
SKIP test-mbsinit.sh (exit status: 77)

SKIP: test-mbsrtowcs1.sh
========================

Skipping test: no traditional french locale is supported
SKIP test-mbsrtowcs1.sh (exit status: 77)

SKIP: test-mbsrtowcs2.sh
========================

Skipping test: no french Unicode locale is supported
SKIP test-mbsrtowcs2.sh (exit status: 77)

SKIP: test-mbsrtowcs3.sh
========================

Skipping test: no traditional japanese locale is supported
SKIP test-mbsrtowcs3.sh (exit status: 77)

SKIP: test-mbsrtowcs4.sh
========================

Skipping test: no transitional chinese locale is supported
SKIP test-mbsrtowcs4.sh (exit status: 77)

SKIP: test-mbsstr2.sh
=====================

Skipping test: no french Unicode locale is supported
SKIP test-mbsstr2.sh (exit status: 77)

SKIP: test-mbsstr3.sh
=====================

Skipping test: no chinese GB18030 locale is supported
SKIP test-mbsstr3.sh (exit status: 77)

SKIP: test-setlocale1.sh
========================

Skipping test: no locale for testing is supported
SKIP test-setlocale1.sh (exit status: 77)

SKIP: test-wcrtomb-w32-1.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-1.sh (exit status: 77)

SKIP: test-wcrtomb-w32-2.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-2.sh (exit status: 77)

SKIP: test-wcrtomb-w32-3.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-3.sh (exit status: 77)

SKIP: test-wcrtomb-w32-4.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-4.sh (exit status: 77)

SKIP: test-wcrtomb-w32-5.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-5.sh (exit status: 77)

SKIP: test-wcrtomb-w32-6.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-6.sh (exit status: 77)

SKIP: test-wcrtomb-w32-7.sh
===========================

Skipping test: not a native Windows system
SKIP test-wcrtomb-w32-7.sh (exit status: 77)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]