[PATCH] Fix test failure with -DNDEBUG.

Carlos O'Donell carlos@redhat.com
Thu Aug 30 15:08:00 GMT 2018


The elf/tst-dlopen-aout.c test uses asserts to verify properties
of the test execution.  Instead of using assert it should use
TEST_VERIFY to avoid the situation where the assert is removed
by building with -DNDEBUG.  This shows up in Fedora 28 when building
for i686-pc-linux-gnu and using gcc 8.1.1.  The fix is to use
TEST_VERIFY which is not impacted by -DNDEBUG.

Tested on i686, and fixes a check failure with -DNDEBUG.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>

-- 
Cheers,
Carlos.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-test-failure-with-DNDEBUG.patch
Type: text/x-patch
Size: 1762 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180830/c29663d1/attachment.bin>


More information about the Libc-alpha mailing list