[patch] Fix BZ#20544 (assert function passed to atexit/on_exit/__cxa_atexit != NULL)

Gabriel F. T. Gomes gabriel@inconstante.eti.br
Tue Nov 13 13:59:00 GMT 2018


On Sat, 01 Sep 2018, Paul Pluzhnikov wrote:

>+static int
>+do_test (void)
>+{
>+#if defined(NDEBUG)
>+  /* Assert disabled, can't verify that assertions fire.  */
>+#endif

Wouldn't it be better to use FAIL_UNSUPPORTED, so that the test is
reported as unsupported in the test summary?  Something in the lines of:

  FAIL_UNSUPPORTED ("Assert disabled, can't verify that assertions fire.");

>+#define TEST_FUNCTION do_test

You don't need this line with the new test framework.

>+#include <support/test-driver.c>



More information about the Libc-alpha mailing list