bug-gnulib
[Top][All Lists]
Advanced

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

tzalloc (was: Re: parse-datetime test failure on NetBSD)


From: Bruno Haible
Subject: tzalloc (was: Re: parse-datetime test failure on NetBSD)
Date: Sun, 14 Mar 2021 12:53:47 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-203-generic; KDE/5.18.0; x86_64; ; )

> FAIL: test-parse-datetime
> =========================
> 
> test-parse-datetime.c:434: assertion 'parse_datetime (&result, "TZ=\"\\\\\"", 
> &now)' failed
> FAIL test-parse-datetime (exit status: 134)

The problem comes from the tzalloc function.
On NetBSD, tzalloc() is in libc, and tzalloc("\\") returns NULL.
On other platforms, tzalloc() comes from Gnulib, and tzalloc("\\") returns
non-NULL.

Which behaviour is correct?

I think we should encode the expected behaviour of tzalloc() in the
(not yet existent) tests module for 'time_rz'.

Bruno





reply via email to

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