[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test-getopt-posix fails on musl
From: |
Bruno Haible |
Subject: |
test-getopt-posix fails on musl |
Date: |
Sat, 24 Feb 2018 10:31:55 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-112-generic; KDE/5.18.0; x86_64; ; ) |
Hi,
On Alpine Linux 3.7.0, which uses musl libc, the gnulib test 'test-getopt-posix'
fails. To me, this looks like a POSIX compliance bug of musl.
Find attached a reduced test case.
$ gcc foo.c -Wall
$ ./a.ou t
foo.c:134: assertion 'options[0] == ':' || ((options[0] == '-' || options[0] ==
'+') && options[1] == ':')' failed
Reference: POSIX
http://pubs.opengroup.org/onlinepubs/9699919799/functions/getopt.html
foo.c
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- test-getopt-posix fails on musl,
Bruno Haible <=