This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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] Fix BZ#20544 (assert function passed to atexit/on_exit/__cxa_atexit != NULL)


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>


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