This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 6/6] Provide assert_perror when it's not defined


On Mon, May 4, 2015 at 5:22 PM, Mark Wielaard <mjw@redhat.com> wrote:
> On Mon, May 04, 2015 at 07:53:27AM +0200, Petr Machata wrote:
>> Max Filippov <jcmvbkbc@gmail.com> writes:
>>
>> > assert_perror is a GNU extension and is not provided by uClibc. Provide
>> > definition when that macro is not available.
>>
>> It looks like it would pay off to have a dedicated header file for this
>> macro.
>
> Yes, but it is only needed in the backtrace tests. So please make it a
> tests only header. But since this is in the tests a simple assert (errno)
> would IMHO also be fine. It is just there to make sure the tests fail on
> something unexpected. For real code we should do proper error checking.

Ok, I'll turn assert_perrors to simple asserts.

-- 
Thanks.
-- Max

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]