Fix test failure with -DNDEBUG.
authorCarlos O'Donell <carlos@redhat.com>
Thu, 30 Aug 2018 15:01:33 +0000 (11:01 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Thu, 30 Aug 2018 16:33:22 +0000 (12:33 -0400)
commitd330f31af68f96dde82840d1e9343b479a8c179e
treef6d4ae91e32004816e10c8e704a7f258240e7d4c
parent2bda273aa37e47bb5afdaf122605440391dac7c5
Fix test failure with -DNDEBUG.

The elf/tst-dlopen-aout.c test uses asserts to verify properties of the
test execution.  Instead of using assert it should use xpthread_create
and xpthread_join to catch errors starting the threads and fail the
test.  This shows up in Fedora 28 when building for i686-pc-linux-gnu
and using gcc 8.1.1.

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

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
ChangeLog
elf/tst-dlopen-aout.c