glib /date/strftime test fails under musl due to tests of extensions
First of all, musl should be part of #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
, which really opens the door to the question if those shouldn't instead be #if ! defined(__GLIBC__)
. However, even with those it still fails:
-
%E
: this is a modifier, the test should test this in conjunction with some of the supported conversion specifiers. This is otherwise testing undefined behavior -
%O
: this is a modifier, the test should test this in conjunction with some of the supported conversion specifiers. This is otherwise testing undefined behavior -
%P
: this is an unsupported GNU extension. Maybe the check could directly be removed? -
%k
: Olson's timezone package extension, unsupported by musl -
%l
: Olson's timezone package extension, unsupported by musl
So it looks like this all could be fixed with some improvements on the test, and the check for extensions.